Commits

Михаил Кривушин  committed 70e0d21

fix sorting in tableview

  • Participants
  • Parent commits 9548800

Comments (0)

Files changed (1)

File svarga/contrib/dataview/tableview/manager.py

 
     def sort_by(self, objects, column, ascending=True):
         if column.sortable:
-            c = column.get_sort_field()
+            c = getattr(self.model, column.get_sort_field())
 
             if ascending:
                 return objects.order_by(c)