mirror of
https://github.com/django/django.git
synced 2025-08-04 19:08:28 +00:00
Split tests.basic.ModelTests in several tests; refs #18586.
This commit is contained in:
parent
77c0a904cb
commit
7e2c804c94
5 changed files with 384 additions and 315 deletions
|
@ -364,10 +364,14 @@ class Plaything(models.Model):
|
|||
return self.name
|
||||
|
||||
|
||||
@python_2_unicode_compatible
|
||||
class Article(models.Model):
|
||||
name = models.CharField(max_length=20)
|
||||
created = models.DateTimeField()
|
||||
|
||||
def __str__(self):
|
||||
return self.name
|
||||
|
||||
|
||||
@python_2_unicode_compatible
|
||||
class Food(models.Model):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue