diff -r d6c39c8e23f8 contrib/admin/options.py
a
|
b
|
|
751 | 751 | template = None |
752 | 752 | verbose_name = None |
753 | 753 | verbose_name_plural = None |
| 754 | can_delete = True |
754 | 755 | |
755 | 756 | def __init__(self, parent_model, admin_site): |
756 | 757 | self.admin_site = admin_site |
… |
… |
|
791 | 792 | "formfield_callback": self.formfield_for_dbfield, |
792 | 793 | "extra": self.extra, |
793 | 794 | "max_num": self.max_num, |
| 795 | 'can_delete': self.can_delete, |
794 | 796 | } |
795 | 797 | defaults.update(kwargs) |
796 | 798 | return inlineformset_factory(self.parent_model, self.model, **defaults) |