Changes between Initial Version and Version 1 of Ticket #32244, comment 9


Ignore:
Timestamp:
Nov 15, 2021, 5:18:58 PM (3 years ago)
Author:
powderflask

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #32244, comment 9

    initial v1  
    1414  - ModelFormSet uses this field type to define these hidden pk fields, and returns the form's original instance if it validates
    1515
     16From what I can tell, this appears to similar to approach taken for FK field added to an `InlineFormSet`, which uses an `InlineForeignKeyField` to serve a similar purpose:
     17
     18{{{
     19      form.fields[name] = InlineForeignKeyField(self.instance, **kwargs)
     20}}}
     21
    1622I don't mind having a kick at this can, but looking for some advice on whether this is even a reasonable idea?
    1723
Back to Top