Skip to content

nondestructive access to the JSON field #11

@johncronan

Description

@johncronan

Here's my suggestion for further improvement: if a JSONField is being used to hold various values, like an "additional options" field, as I think is often the case, then the admin form doesn't necessarily know about every possible key. And perhaps the way the form is initialized varies, so that in certain contexts we only want to display and edit a portion of the complete JSON. Therefore, the clean method on an EntangledModelForm should access the JSON fields without reinitializing everything (see here).

One other thing to mention: More support for standard callbacks like get_fields would be great (to customize entangled fields being displayed on an add form vs a change form, for example). The way you've designed things, initially, though - I really like it!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions