Re: Combinable generic CBVs

2012-10-23 Thread Kudlaty
Hi, i just starting to use CBVs in django and i try to implement something like that: from django.views.generic import DetailView from .models import Product, ProductOpinion from .forms import OpinionForm class OpinionListMixin(object): queryset = ProductOpinion.objects.all().order_by('-da

Re: Combinable generic CBVs

2012-08-30 Thread Rainy
On Aug 29, 5:24 pm, Melvyn Sopacua wrote: > On 29-8-2012 18:46, Rainy wrote: > > > On Aug 29, 3:10 am, Melvyn Sopacua wrote: > >> On 29-8-2012 4:44, Rainy wrote: > > >>> When I use CBVs, I nearly always end up needing to mix different types in > >>> the same view, e.g. detail view and list view

Re: Combinable generic CBVs

2012-08-29 Thread Melvyn Sopacua
On 29-8-2012 18:46, Rainy wrote: > On Aug 29, 3:10 am, Melvyn Sopacua wrote: >> On 29-8-2012 4:44, Rainy wrote: >> >>> When I use CBVs, I nearly always end up needing to mix different types in >>> the same view, e.g. detail view and list view, list view and modelform >>> view, etc. I really like C

Re: Combinable generic CBVs

2012-08-29 Thread Rainy
On Aug 29, 3:10 am, Melvyn Sopacua wrote: > On 29-8-2012 4:44, Rainy wrote: > > > When I use CBVs, I nearly always end up needing to mix different types in > > the same view, e.g. detail view and list view, list view and modelform > > view, etc. I really like CBVs but I feel this is the one shortc

Re: Combinable generic CBVs

2012-08-29 Thread Melvyn Sopacua
On 29-8-2012 4:44, Rainy wrote: > When I use CBVs, I nearly always end up needing to mix different types in > the same view, e.g. detail view and list view, list view and modelform > view, etc. I really like CBVs but I feel this is the one shortcoming that I > constantly run into that makes CBVs

Combinable generic CBVs

2012-08-28 Thread Rainy
When I use CBVs, I nearly always end up needing to mix different types in the same view, e.g. detail view and list view, list view and modelform view, etc. I really like CBVs but I feel this is the one shortcoming that I constantly run into that makes CBVs much less flexible and helpful than th