mirror of
https://github.com/django/django.git
synced 2025-11-25 21:22:14 +00:00
Refs #27953 -- Removed hardcoded uses of Model.__str__() in tests.
This commit is contained in:
parent
0877989c94
commit
7c9cb1ed37
6 changed files with 31 additions and 28 deletions
|
|
@ -18,6 +18,9 @@ class Article(models.Model):
|
|||
hist = models.CharField(max_length=100, verbose_name=_("History"))
|
||||
created = models.DateTimeField(null=True)
|
||||
|
||||
def __str__(self):
|
||||
return self.title
|
||||
|
||||
def test_from_model(self):
|
||||
return "nothing"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue