Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

django create view filter options

class FolderCreate(CreateView):
    template_name = 'Form/folder_create.html'
    form_class = FolderForm

    def get_form_kwargs(self):
        kwargs = super(FolderCreate, self).get_form_kwargs()
        kwargs['user'] = self.request.user
        return kwargs
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #django #create #view #filter #options
ADD COMMENT
Topic
Name
3+1 =