diff options
| author | Collin Anderson <cmawebsite@gmail.com> | 2017-06-09 12:36:09 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2017-06-09 13:28:50 -0400 |
| commit | 7c9cb1ed37354c184fe0438ecae923d5be711c86 (patch) | |
| tree | 32953158d70c189106ab0adfabccb417bcadd345 /tests/admin_utils/models.py | |
| parent | 0877989c94130079930419e867ff55fa1fb4f5a0 (diff) | |
Refs #27953 -- Removed hardcoded uses of Model.__str__() in tests.
Diffstat (limited to 'tests/admin_utils/models.py')
| -rw-r--r-- | tests/admin_utils/models.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/admin_utils/models.py b/tests/admin_utils/models.py index dafb24e342..7b9c08a2f7 100644 --- a/tests/admin_utils/models.py +++ b/tests/admin_utils/models.py @@ -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" |
