1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

Fixed #26524 -- Fixed crash in admin change view when displaying many to many forward refs.

Thanks Tim Graham for the regression test.
This commit is contained in:
Jon Dufresne
2016-09-11 08:19:56 -07:00
parent f0f3de3c96
commit e24c0a2d7c
3 changed files with 13 additions and 1 deletions

View File

@@ -596,9 +596,13 @@ class CyclicTwo(models.Model):
return self.name
@python_2_unicode_compatible
class Topping(models.Model):
name = models.CharField(max_length=20)
def __str__(self):
return self.name
class Pizza(models.Model):
name = models.CharField(max_length=20)