On 27 juil, 10:37, gs794 wrote:
> Thanks for the reply.
>
> I previously had a look at how QuerySet.none (in
> Django.db.models.query) was implemented, and that didn 't give me any
> clues - hence the post. So I worked it out by looking at
> http://seanmonstar.com/post/708862164/extending-django
Thanks for the reply.
I previously had a look at how QuerySet.none (in
Django.db.models.query) was implemented, and that didn 't give me any
clues - hence the post. So I worked it out by looking at
http://seanmonstar.com/post/708862164/extending-django-models-managers-and-querysets
which explains
On 27 juil, 06:27, gs794 wrote:
> Hi all,
>
> I'm having trouble overriding QuerySet.none() (code below)... Works
> if I rename the method to almost anything but "none".
>
> class QuerySetManager(models.Manager):
> def get_query_set(self):
> return self.model.QuerySet(self.model)
> def __
Hi all,
I'm having trouble overriding QuerySet.none() (code below)... Works
if I rename the method to almost anything but "none".
class QuerySetManager(models.Manager):
def get_query_set(self):
return self.model.QuerySet(self.model)
def __getattr__(self, name):
return getattr(self.ge
4 matches
Mail list logo