1
0
mirror of https://github.com/django/django.git synced 2025-10-30 17:16:10 +00:00

[1.7.x] Fixed #22087 -- Made AdminReadonlyField respect ModelForm Meta overrides.

Backport of 16afffffe8 from master
This commit is contained in:
Ben Davis
2014-02-18 16:44:33 -06:00
committed by Tim Graham
parent b4f165fe94
commit 2460484486
4 changed files with 50 additions and 4 deletions

View File

@@ -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)