diff options
author | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2020-04-30 09:13:23 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-30 09:13:23 +0200 |
commit | 555e3a848e7ac13580371c7eafbc89195fee6ea9 (patch) | |
tree | f3db796d8b7c9764d77da9444b4ca30150e6d65d /tests/m2m_through_regress | |
parent | bb13711451157d5081c2d2a297820f6bc131ac27 (diff) | |
download | django-555e3a848e7ac13580371c7eafbc89195fee6ea9.tar.gz |
Removed unused __str__() methods in tests models.
Follow up to 6461583b6cc257d25880ef9a9fd7e2125ac53ce1.
Diffstat (limited to 'tests/m2m_through_regress')
-rw-r--r-- | tests/m2m_through_regress/models.py | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/tests/m2m_through_regress/models.py b/tests/m2m_through_regress/models.py index 5405e5595c..7d64e7cf75 100644 --- a/tests/m2m_through_regress/models.py +++ b/tests/m2m_through_regress/models.py @@ -8,9 +8,6 @@ class Membership(models.Model): group = models.ForeignKey('Group', models.CASCADE) price = models.IntegerField(default=100) - def __str__(self): - return "%s is a member of %s" % (self.person.name, self.group.name) - # using custom id column to test ticket #11107 class UserMembership(models.Model): @@ -19,9 +16,6 @@ class UserMembership(models.Model): group = models.ForeignKey('Group', models.CASCADE) price = models.IntegerField(default=100) - def __str__(self): - return "%s is a user and member of %s" % (self.user.username, self.group.name) - class Person(models.Model): name = models.CharField(max_length=128) |