use order by NULLS LAST and remove extra rows in db

This commit is contained in:
j 2011-01-25 04:16:16 +05:30
commit 590c0c96c2
3 changed files with 36 additions and 83 deletions

View file

@ -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":