Exception Value: Expression contains mixed types: TextField, IntegerField. You must set output_field.
jedie opened this issue · 3 comments
jedie commented
It's here:
django-admin-sortable2/adminsortable2/admin.py
Lines 339 to 342 in 7bb2640
I just add a poor work-a-round:
def get_max_order(self, request, obj=None):
return 0
jrief commented
Does this mean that method get_max_order
returns a string rather than a number?
What's the field type of the field you're using for ordering? Please show me your model.
jedie commented
jrief commented
well, you're using a TextField as ordering variable. For obvious reasons this can't work and should have been discovered by yourself in the first place.