#29267: Refactor ModelForm to support separate fields
-----------------------------------------+------------------------
               Reporter:  Victor Porton  |          Owner:  nobody
                   Type:  New feature    |         Status:  new
              Component:  Forms          |        Version:  2.0
               Severity:  Normal         |       Keywords:
           Triage Stage:  Unreviewed     |      Has patch:  0
    Needs documentation:  0              |    Needs tests:  0
Patch needs improvement:  0              |  Easy pickings:  0
                  UI/UX:  0              |
-----------------------------------------+------------------------
 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.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/29267>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/050.b1c385dcf6c60cba7ae02de8439e7b3e%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to