django-admin-sortable/adminsortable/utils.py

4 lines
95 B
Python

def get_is_sortable(objects):
if objects.count() > 1:
return True
return False