In my project, I have quite complicated create and update views (which override many of django view methods).
However, the change I make in those Create- and Update- View are quite similar.
How can I avoid repeating the code in each subclass ?
Depending upon the specific circumstances, you could create a Mixin class that is applied to each of those View classes. (Think of the
PermissionRequiredMixin as examples of this type of functionality.)
Thanks for the help !