Z
Z
zkweb2016-11-08 11:40:20
Django
zkweb, 2016-11-08 11:40:20

How to hide form fields depending on user group?

How to hide form fields depending on user group?
Sellers show certain fields
Managers other fields
, etc.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Gornostaev, 2016-11-08
@zkweb

Make several different forms and override the get_form_class method in the view, in which to check the group of the current user and return the corresponding form.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question