Ticket #13618: django.patch
File django.patch, 614 bytes (added by , 14 years ago) |
---|
-
django/contrib/admin/helpers.py
diff --git a/django/contrib/admin/helpers.py b/django/contrib/admin/helpers.py
a b 29 29 self.prepopulated_fields = [{ 30 30 'field': form[field_name], 31 31 'dependencies': [form[f] for f in dependencies] 32 } for field_name, dependencies in prepopulated_fields.items()] 32 } for field_name, dependencies in prepopulated_fields.items() 33 if field_name not in readonly_fields] 33 34 self.model_admin = model_admin 34 35 if readonly_fields is None: 35 36 readonly_fields = ()