diff options
| author | Baptiste Mispelon <bmispelon@gmail.com> | 2015-03-08 11:50:32 +0100 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2015-03-09 10:12:21 -0400 |
| commit | 82c9169077a066995e3b00aac551bf1c8a89d98a (patch) | |
| tree | 831f6031f14cb56609eafa6e29b28919d4be787d /tests/admin_views/models.py | |
| parent | 300fdbbebba45cb4e7f32edc524171019d9bce80 (diff) | |
Refs #24461 -- Added test/release notes for XSS issue in ModelAdmin.readonly_fields
This issue was fixed by refs #24464.
Diffstat (limited to 'tests/admin_views/models.py')
| -rw-r--r-- | tests/admin_views/models.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/admin_views/models.py b/tests/admin_views/models.py index 07f6864cf5..845d3d9ee2 100644 --- a/tests/admin_views/models.py +++ b/tests/admin_views/models.py @@ -22,6 +22,13 @@ class Section(models.Model): """ name = models.CharField(max_length=100) + @property + def name_property(self): + """ + A property that simply returns the name. Used to test #24461 + """ + return self.name + @python_2_unicode_compatible class Article(models.Model): |
