Re: Creating a custom mixin for use with the generic CreateView
On Thu, Oct 4, 2012 at 4:55 PM, Guruprasad L <lgp171188@gmail.com> wrote:
> This is the first time I am using mixins in code. I read mixed opinions
> about mixins, a few of them saying that it is bad. If it is bad, is there
> some other way to implement this?
regardless of any moral issues for or against mixins, this is how
class based views are currently designed: you can subclass to add
concrete functionality once, or create a mixin to apply some
functionality to several concrete subclasses.
so, no need to feel bad :-)
(besides, some people just love mixins)
--
Javier
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home