Reputation: 43
In my django app I need to have a different form for the different user role groups; I mean, at least two different forms. Is there any possible way to do so ?
Thanks in advance everyone.
Upvotes: 0
Views: 264
Reputation: 599530
I presume you are using a class-based view. All the creation/editing views are based on ModelFormMixin, which includes a get_form_class()
method.
Upvotes: 2