Permalink
Browse files

allow inheriting classes to modify ActivatorModelManager's `get_query…

…_set()`
  • Loading branch information...
1 parent d68835e commit 6e8ed84a6fadd4f4112b9fa64d51944c490d3271 @tehfink committed Apr 22, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 django_extensions/db/models.py
@@ -41,11 +41,11 @@ class ActivatorModelManager(models.Manager):
"""
def active(self):
""" Returns active instances of ActivatorModel: SomeModel.objects.active() """
- return super(ActivatorModelManager, self).get_query_set().filter(status=ActivatorModel.ACTIVE_STATUS)
+ return self.get_query_set().filter(status=ActivatorModel.ACTIVE_STATUS)
def inactive(self):
""" Returns inactive instances of ActivatorModel: SomeModel.objects.inactive() """
- return super(ActivatorModelManager, self).get_query_set().filter(status=ActivatorModel.INACTIVE_STATUS)
+ return self.get_query_set().filter(status=ActivatorModel.INACTIVE_STATUS)
class ActivatorModel(models.Model):

0 comments on commit 6e8ed84

Please sign in to comment.