diff options
| author | Tim Graham <timograham@gmail.com> | 2016-07-06 15:41:06 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2016-07-15 09:23:32 -0400 |
| commit | d03bf6fe4e9bf5b07de62c1a271c4b41a7d3d158 (patch) | |
| tree | caffc2e8db737972ec4d8d48961f506e43090336 /tests/admin_views/models.py | |
| parent | ab2f5f764a2f6db97e23cccd5c4f5abbb43d1caf (diff) | |
[1.9.x] Fixed XSS in admin's add/change related popup.
This is a security fix.
Diffstat (limited to 'tests/admin_views/models.py')
| -rw-r--r-- | tests/admin_views/models.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/admin_views/models.py b/tests/admin_views/models.py index aa91eef57e..f1c77e2872 100644 --- a/tests/admin_views/models.py +++ b/tests/admin_views/models.py @@ -17,6 +17,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 @@ -24,6 +25,9 @@ class Section(models.Model): """ name = models.CharField(max_length=100) + def __str__(self): + return self.name + @property def name_property(self): """ |
