colored orders + ping sound

This commit is contained in:
2024-12-17 22:58:49 +01:00
parent 69bc5698bd
commit 948dbbca61
5 changed files with 59 additions and 8 deletions

View File

@ -83,7 +83,7 @@ class OrderViewSet(viewsets.ModelViewSet):
serializer_class = OrderSerializer
filter_backends = [DjangoFilterBackend, filters.OrderingFilter]
filterset_fields = ['waiter']
ordering = ['-updated_on']
ordering = ['-created_on']
def get_queryset(self):
five_minutes_ago = timezone.now() + datetime.timedelta(minutes=-5)