Cansada de ser feliz

Bienvenidos a mi flujo de conciencia

How to pass a variable from form to view in Django

| Comments

Sometimes there is a need to pass a variable (parameter) from a FormView (for example, CreateView, UpdateView) to a form (for example, ModelForm).

Let’s suppose that we want to use a value of other_variable from a view MyCreateView in MyForm:

Comments