Ticket #12628: generic_inlines_save.diff
File generic_inlines_save.diff, 685 bytes (added by , 15 years ago) |
---|
-
django/contrib/contenttypes/generic.py
387 387 fields = flatten_fieldsets(self.declared_fieldsets) 388 388 else: 389 389 fields = None 390 391 readonly_fields = getattr(self, 'readonly_fields', None) 392 if readonly_fields: 393 if not self.exclude: 394 self.exclude = [] 395 396 self.exclude.extend(readonly_fields) 397 390 398 defaults = { 391 399 "ct_field": self.ct_field, 392 400 "fk_field": self.ct_fk_field,