use QuerySet in all managers
This commit is contained in:
parent
0e55faca0d
commit
5b72a33a95
7 changed files with 10 additions and 7 deletions
|
|
@ -2,6 +2,8 @@
|
|||
# vi:si:et:sw=4:sts=4:ts=4
|
||||
from django.db.models import Q, Manager
|
||||
|
||||
from ox.django.query import QuerySet
|
||||
|
||||
|
||||
def parseCondition(condition, user):
|
||||
'''
|
||||
|
|
@ -92,7 +94,7 @@ def parseConditions(conditions, operator, user):
|
|||
class EditManager(Manager):
|
||||
|
||||
def get_query_set(self):
|
||||
return super(EditManager, self).get_query_set()
|
||||
return QuerySet(self.model)
|
||||
|
||||
def find(self, data, user):
|
||||
'''
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue