Ticket #8341: options.diff

File options.diff, 966 bytes (added by ciantic@…, 16 years ago)

options.py (Is this correct diff file syntax?)

  • django/contrib/admin/options.py

     
    813813    template = None
    814814    verbose_name = None
    815815    verbose_name_plural = None
     816    can_delete = True
     817    can_order = False
    816818
    817819    def __init__(self, parent_model, admin_site):
    818820        self.admin_site = admin_site
     
    833835        return inlineformset_factory(self.parent_model, self.model,
    834836            form=self.form, formset=self.formset, fk_name=self.fk_name,
    835837            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)
    837840
    838841    def get_fieldsets(self, request, obj=None):
    839842        if self.declared_fieldsets:
Back to Top