Merge pull request #59 from PyKaB/patch-1

Make fast query with "count(*)" instead selecting all data
This commit is contained in:
Brandon Taylor
2013-11-07 09:18:58 -08:00
+1 -1
View File
@@ -1,4 +1,4 @@
def get_is_sortable(objects):
if len(objects) > 1:
if objects.count() > 1:
return True
return False