On 9/21/07, omat <[EMAIL PROTECTED]> wrote:
This:
> class TagManager(models.Manager)
>     # ...
>     def get_query_set(self):
>         return TagQuerySet

Should be this:
     def get_query_set(self):
         return TagQuerySet(Tag)

   And you'll obviously need to implement "my_filter" on TagQuerySet.

Also, this:
   def my_filter(self):
       # calculate the query set
       # ...
       return get_query_set().my_filter(*args, **kwargs

Should be this:
   def my_filter(self):
       # calculate the query set
       # ...
       return self.get_query_set().my_filter(*args, **kwargs)

--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to