Reputation: 152
I am working on a Todo list and was wondering the best way to add a form to a DetailView. I am now assuming from reading around that I need to make a function to do it but was curious if I could use a CBV.
Upvotes: 1
Views: 1099
Reputation: 51261
You could use FormView
for this task.
Please look up the Django doc for usages.
I used this CBV a lot in my project and found it greatly separate the logics.
Upvotes: 1