Re: adding custom variables to the Meta class

2010-01-05 Thread Jani Tiainen
On Tue, 2010-01-05 at 04:17 -0800, bruno desthuilliers wrote: > > On 5 jan, 00:05, HARRY POTTRER wrote: > > I have an class that I created which takes a queryset, and a field on > > the model that the queryset represents. Like this: > > > > mc = MyClass(queryset=MyModel.objects.all(), lat_lng_fie

Re: adding custom variables to the Meta class

2010-01-05 Thread bruno desthuilliers
On 5 jan, 00:05, HARRY POTTRER wrote: > I have an class that I created which takes a queryset, and a field on > the model that the queryset represents. Like this: > > mc = MyClass(queryset=MyModel.objects.all(), lat_lng_field='lat_lng') > > The class basically filters the queryset based on some

adding custom variables to the Meta class

2010-01-04 Thread HARRY POTTRER
I have an class that I created which takes a queryset, and a field on the model that the queryset represents. Like this: mc = MyClass(queryset=MyModel.objects.all(), lat_lng_field='lat_lng') The class basically filters the queryset based on some geographical values, but in order to do that, it ne