Ticket #10331: r9885-inlinemodelformset.diff

File r9885-inlinemodelformset.diff, 621 bytes (added by Thomas Presthus <thomas@…>, 16 years ago)

Patch for ticket #10331

  • django/forms/models.py

     
    504504        if self._pk_field == self.fk:
    505505            form.fields[self._pk_field.name] = InlineForeignKeyField(self.instance, pk_field=True)
    506506        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)
    508508
    509509def _get_foreign_key(parent_model, model, fk_name=None):
    510510    """
Back to Top