Ross
Ross

Reputation: 152

Django DetailView with a form

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

Answers (1)

user469652
user469652

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

Related Questions