Skip to content

Instantly share code, notes, and snippets.

@esseti

esseti/views.py Secret

Last active Apr 3, 2018
Embed
What would you like to do?
class MyVIew(CreateView):
template_name = "my_template.html"
form_class = MultipleChoiceForm
def get_form_kwargs(self):
ctx = super().get_form_kwargs()
ctx.update({'qs':THE_QUERYSET})
return ctx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment