summaryrefslogtreecommitdiff
path: root/tests/admin_views/models.py
diff options
context:
space:
mode:
authorBen Davis <bendavis78@gmail.com>2014-02-18 16:44:33 -0600
committerTim Graham <timograham@gmail.com>2014-03-25 09:33:13 -0400
commit16afffffe87bf8b7de6403329937433ac5096697 (patch)
treea158a517c521c5a2a579b5d97aec5d1ff2ca1ef3 /tests/admin_views/models.py
parent35ed792cf248d6b245e299d13fe47b56f4c6bf42 (diff)
Fixed #22087 -- Made AdminReadonlyField respect ModelForm Meta overrides.
Diffstat (limited to 'tests/admin_views/models.py')
-rw-r--r--tests/admin_views/models.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/admin_views/models.py b/tests/admin_views/models.py
index c729f6b90a..fb72b12717 100644
--- a/tests/admin_views/models.py
+++ b/tests/admin_views/models.py
@@ -438,6 +438,13 @@ class Post(models.Model):
return "Very awesome."
+# Proxy model to test overridden fields attrs on Post model so as not to
+# interfere with other tests.
+class FieldOverridePost(Post):
+ class Meta:
+ proxy = True
+
+
@python_2_unicode_compatible
class Gadget(models.Model):
name = models.CharField(max_length=100)