I'd be pretty sceptical about any extra API here. Even an extra hook seems 
a bit much. 

def get_form_class(self):
    base_form = super().get_form_class()
    return modelform_factory(self.model, base_form, widgets=...)

Job done, no? 

(This assuming that "Just declare your form class normally" isn't good 
advice in context.) 

Kind Regards,


You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To post to this group, send email to django-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/django-developers.
To view this discussion on the web visit 
For more options, visit https://groups.google.com/d/optout.

Reply via email to