Make fast query with "count(*)" instead selecting all data
parent
e7da934c2e
commit
6195cd7390
|
|
@ -1,4 +1,4 @@
|
||||||
def get_is_sortable(objects):
|
def get_is_sortable(objects):
|
||||||
if len(objects) > 1:
|
if objects.count() > 1:
|
||||||
return True
|
return True
|
||||||
return False
|
return False
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue