Opened 7 years ago

Closed 7 years ago

#29267 closed New feature (wontfix)

Refactor ModelForm to support separate fields

Reported by: Victor Porton Owned by: nobody
Component: Forms Version: 2.0
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

Now I am designing a form based on two models. I cannot use ModelForm, because I need to support "splitting" data into two models and versioning of one of these models.

So I manually create form fields based on model fields (repeating such arguments as max_length, what is against DRY).

I want given a model field to create its corresponding form field automatically (like to what ModelForm does, but for individual fields rather than for the entire model).

So, please factor ModelForm into smaller parts to support such usage.

Change History (1)

comment:1 by Jani Tiainen, 7 years ago

Resolution: wontfix
Status: newclosed

Nothing prevents you to use even multiple modelforms within single HTML form.

If you need help with using Django in such a case, either consult #django IRC channel on Freenode or Django user group on google groups.

Closing as won't fix.

Note: See TracTickets for help on using tickets.
Back to Top