mirror of
https://github.com/django/django.git
synced 2025-08-04 10:59:45 +00:00
Consolidated ModelChoiceField tests.
This commit is contained in:
parent
94a180402c
commit
06172d7bc2
4 changed files with 279 additions and 287 deletions
|
@ -130,12 +130,5 @@ class FileModel(models.Model):
|
|||
file = models.FileField(storage=temp_storage, upload_to='tests')
|
||||
|
||||
|
||||
class Group(models.Model):
|
||||
name = models.CharField(max_length=10)
|
||||
|
||||
def __str__(self):
|
||||
return '%s' % self.name
|
||||
|
||||
|
||||
class Article(models.Model):
|
||||
content = models.TextField()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue