diff options
| author | Brian Rosner <brosner@gmail.com> | 2009-12-22 18:29:00 +0000 |
|---|---|---|
| committer | Brian Rosner <brosner@gmail.com> | 2009-12-22 18:29:00 +0000 |
| commit | bcd9482a2019158f4580c24cd50ee8bfae9b2739 (patch) | |
| tree | af1de2b3e36b78d4fb820fe033acb4041eef09d0 /docs/releases | |
| parent | 9233d0426537615e06b78d28010d17d5a66adf44 (diff) | |
Fixed #342 -- added readonly_fields to ModelAdmin. Thanks Alex Gaynor for bootstrapping the patch.
ModelAdmin has been given a readonly_fields that allow field and calculated
values to be displayed alongside editable fields. This works on model
add/change pages and inlines.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@11965 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs/releases')
| -rw-r--r-- | docs/releases/1.2.txt | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/docs/releases/1.2.txt b/docs/releases/1.2.txt index 200fb4a5b6..0b2584dae1 100644 --- a/docs/releases/1.2.txt +++ b/docs/releases/1.2.txt @@ -485,3 +485,10 @@ enabled, dates and numbers on templates will be displayed using the format specified for the current locale. Django will also use localized formats when parsing data in forms. See :ref:`Format localization <format-localization>` for more details. + +Added ``readonly_fields`` to ``ModelAdmin`` +------------------------------------------- + +:attr:`django.contrib.admin.ModelAdmin.readonly_fields` has been added to +enable non-editable fields in add/change pages for models and inlines. Field +and calculated values can be displayed along side editable fields. |
