#9547: Need better support for dynamic forms
-----------------------------------------------+----------------------------
          Reporter:  [EMAIL PROTECTED]  |         Owner:  nobody       
            Status:  closed                    |     Milestone:               
         Component:  Forms                     |       Version:  1.0          
        Resolution:  invalid                   |      Keywords:  dynamic forms
             Stage:  Unreviewed                |     Has_patch:  0            
        Needs_docs:  0                         |   Needs_tests:  0            
Needs_better_patch:  0                         |  
-----------------------------------------------+----------------------------
Changes (by brosner):

  * status:  new => closed
  * needs_better_patch:  => 0
  * resolution:  => invalid
  * needs_tests:  => 0
  * needs_docs:  => 0

Comment:

 Are you actually proposing a specific fix? This is already possible.
 Django's forms are just Python classes. You can easily create runtime
 classes using Python's `type` function. I would recommend reading up on
 how Python works in that respect.

 {{{
 type("MyForm", (forms.Form,), {"base_fields": { ... },})
 }}}

 `base_fields` is where your runtime fields are created. I am marking this
 as invalid. I would consider proposing an actual fix or improvement to
 django-developers before opening a drive by ticket. Thanks :)

-- 
Ticket URL: <http://code.djangoproject.com/ticket/9547#comment:1>
Django <http://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 post to this group, send email to django-updates@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to