mirror of
https://github.com/django/django.git
synced 2025-08-03 10:34:04 +00:00
Refs #25165 -- Fixed failure of admin's "Add another" popup to close.
Thanks Thomas Grainger for the fix.
This commit is contained in:
parent
db8f462494
commit
822a03b3e4
3 changed files with 17 additions and 3 deletions
|
@ -16,6 +16,7 @@ from django.db import models
|
|||
from django.utils.encoding import python_2_unicode_compatible
|
||||
|
||||
|
||||
@python_2_unicode_compatible
|
||||
class Section(models.Model):
|
||||
"""
|
||||
A simple section that links to articles, to test linking to related items
|
||||
|
@ -23,6 +24,9 @@ class Section(models.Model):
|
|||
"""
|
||||
name = models.CharField(max_length=100)
|
||||
|
||||
def __str__(self):
|
||||
return self.name
|
||||
|
||||
@property
|
||||
def name_property(self):
|
||||
"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue