Ticket #11250: options.diff

File options.diff, 706 bytes (added by tangc, 15 years ago)
  • contrib/admin/options.py

    diff -r d6c39c8e23f8 contrib/admin/options.py
    a b  
    751751    template = None
    752752    verbose_name = None
    753753    verbose_name_plural = None
     754    can_delete = True
    754755
    755756    def __init__(self, parent_model, admin_site):
    756757        self.admin_site = admin_site
     
    791792            "formfield_callback": self.formfield_for_dbfield,
    792793            "extra": self.extra,
    793794            "max_num": self.max_num,
     795            'can_delete': self.can_delete,
    794796        }
    795797        defaults.update(kwargs)
    796798        return inlineformset_factory(self.parent_model, self.model, **defaults)
Back to Top