forked from 0x2620/pandora
update documents backend
This commit is contained in:
parent
9297166889
commit
0e55faca0d
4 changed files with 162 additions and 8 deletions
|
|
@ -2,6 +2,7 @@
|
|||
# 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):
|
||||
'''
|
||||
|
|
@ -91,7 +92,7 @@ def parseConditions(conditions, operator, user):
|
|||
class DocumentManager(Manager):
|
||||
|
||||
def get_query_set(self):
|
||||
return super(DocumentManager, self).get_query_set()
|
||||
return QuerySet(self.model)
|
||||
|
||||
def find(self, data, user):
|
||||
'''
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue