Corrected date_created field to current created field as it exists in models.py

This commit is contained in:
Thomas Weber 2020-10-13 11:20:58 -06:00
parent 39d810778a
commit d3cb9fdf23

View File

@ -163,7 +163,7 @@ class __Query__:
to a Serializer called DatatablesTicketSerializer in serializers.py. to a Serializer called DatatablesTicketSerializer in serializers.py.
""" """
objects = self.get() objects = self.get()
order_by = '-date_created' order_by = '-created'
draw = int(kwargs.get('draw', [0])[0]) draw = int(kwargs.get('draw', [0])[0])
length = int(kwargs.get('length', [25])[0]) length = int(kwargs.get('length', [25])[0])
start = int(kwargs.get('start', [0])[0]) start = int(kwargs.get('start', [0])[0])