[Fixed]-Django Class-based Form is not displayed

1👍

It doesn’t work because you need to pass an form instance and you are passing a class based view. CreateView is a class based view, not a ModelForm.

It could be easier to create a CreateView like in the example and get the data to build the list in get_context_data()

Leave a comment