Skip to content

Commit

Permalink
fix: datatables
Browse files Browse the repository at this point in the history
  • Loading branch information
francesco-filicetti committed Nov 19, 2024
1 parent 22a582b commit 261bc7f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions uniticket/uni_ticket/views/datatables.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ def get_queryset(self):
| Q(subject__icontains=text)
| Q(created_by__last_name__icontains=text)
| Q(compiled_by__last_name__icontains=text)
| Q(closed_by__last_name__icontains=text)
)

def fill_data(self):
Expand Down Expand Up @@ -127,7 +126,7 @@ def get_ordering(self):
# bisogna mappare la colonna con il numero di sequenza eppoi
# fare order_by
if self.order_col:
self.col_name = f'ticket__{self.columns[self.order_col]}'
self.col_name = f'{self.columns[self.order_col]}'
if self.order_dir == 'asc':
self.aqs = self.aqs.order_by(self.col_name)
else:
Expand Down

0 comments on commit 261bc7f

Please sign in to comment.