two-scoops-of-django-3.x
two-scoops-of-django-3.x copied to clipboard
Example 10.9 : Consistent Mixin with Example 12.6
Location within the Book
- Chapter or Appendix: 10
- Section: 10.5.1
- Subsection: Example 10.9
Description
model = Flavor
is defined both in FlavorCreateView
and FlavorUpdateView
class.
Possible Solutions
I would suggest define model = Flavor
in FlavorActionMixin
class (consistent with Example 12.6).
Your full name so we can provide accurate credit within the book
Jerry Wu