use order by NULLS LAST and remove extra rows in db
This commit is contained in:
parent
0a6c88402d
commit
590c0c96c2
3 changed files with 36 additions and 83 deletions
|
|
@ -6,7 +6,7 @@ from django.db.models import Q, Manager
|
|||
|
||||
from itemlist.models import List
|
||||
import models
|
||||
|
||||
from ox.django.query import QuerySet
|
||||
|
||||
def parseCondition(condition):
|
||||
'''
|
||||
|
|
@ -193,7 +193,8 @@ def parseConditions(conditions, operator):
|
|||
class ItemManager(Manager):
|
||||
|
||||
def get_query_set(self):
|
||||
return super(ItemManager, self).get_query_set()
|
||||
#return super(ItemManager, self).get_query_set()
|
||||
return QuerySet(self.model)
|
||||
|
||||
def filter_list(self, qs, l, user):
|
||||
if l != "all":
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue