Ticket #8071: r8520-validate-username-2.patch
File r8520-validate-username-2.patch, 1.0 KB (added by , 16 years ago) |
---|
-
django/forms/models.py
419 419 # let the formset handle object deletion by default 420 420 421 421 if exclude is not None: 422 if type(exclude) == str: 423 exclude = [exclude] 424 else: 425 exclude = list(exclude) 426 422 427 exclude.append(fk.name) 423 428 else: 424 429 exclude = [fk.name] -
django/contrib/admin/options.py
774 774 "extra": self.extra, 775 775 "max_num": self.max_num, 776 776 } 777 778 if hasattr(self.form, "Meta") and hasattr(self.form.Meta, "exclude"): 779 defaults.update({ "exclude": self.form.Meta.exclude }) 780 777 781 defaults.update(kwargs) 778 782 return inlineformset_factory(self.parent_model, self.model, **defaults) 779 783