Ticket #8341: options.diff
File options.diff, 966 bytes (added by , 16 years ago) |
---|
-
django/contrib/admin/options.py
813 813 template = None 814 814 verbose_name = None 815 815 verbose_name_plural = None 816 can_delete = True 817 can_order = False 816 818 817 819 def __init__(self, parent_model, admin_site): 818 820 self.admin_site = admin_site … … 833 835 return inlineformset_factory(self.parent_model, self.model, 834 836 form=self.form, formset=self.formset, fk_name=self.fk_name, 835 837 fields=fields, formfield_callback=self.formfield_for_dbfield, 836 extra=self.extra, max_num=self.max_num) 838 extra=self.extra, max_num=self.max_num, can_delete=self.can_delete, 839 can_order=self.can_order) 837 840 838 841 def get_fieldsets(self, request, obj=None): 839 842 if self.declared_fieldsets: