diff options
| author | Karen Tracey <kmtracey@gmail.com> | 2010-03-08 20:36:37 +0000 |
|---|---|---|
| committer | Karen Tracey <kmtracey@gmail.com> | 2010-03-08 20:36:37 +0000 |
| commit | 021ba30ad1d4fffada4f2d43d47a4704bcfca45e (patch) | |
| tree | 24f5b58ec3e06defccc1de000f2e313a7bc700aa /tests/regressiontests/admin_validation/models.py | |
| parent | f2bc4dd0a9e4676f77d4a1c0ddb5e836750f966c (diff) | |
Fixed #12481: Updated admin validation code to not reject non-editable fields in readonly_fields, since these are handled fine by the display code itself. Thanks lashni and Alex.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@12730 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'tests/regressiontests/admin_validation/models.py')
| -rw-r--r-- | tests/regressiontests/admin_validation/models.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/regressiontests/admin_validation/models.py b/tests/regressiontests/admin_validation/models.py index ef65c45352..b50764844e 100644 --- a/tests/regressiontests/admin_validation/models.py +++ b/tests/regressiontests/admin_validation/models.py @@ -12,6 +12,7 @@ class Album(models.Model): class Song(models.Model): title = models.CharField(max_length=150) album = models.ForeignKey(Album) + original_release = models.DateField(editable=False) class Meta: ordering = ('title',) |
