Ticket #10331: r9885-inlinemodelformset.diff
File r9885-inlinemodelformset.diff, 621 bytes (added by , 16 years ago) |
---|
-
django/forms/models.py
504 504 if self._pk_field == self.fk: 505 505 form.fields[self._pk_field.name] = InlineForeignKeyField(self.instance, pk_field=True) 506 506 else: 507 form.fields[self.fk.name] = InlineForeignKeyField(self.instance , label=form.fields[self.fk.name].label)507 form.fields[self.fk.name] = InlineForeignKeyField(self.instance) 508 508 509 509 def _get_foreign_key(parent_model, model, fk_name=None): 510 510 """