1

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.

4

1 回答 1

1

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.

于 2013-01-24T23:52:17.513 回答