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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user