diff --git a/core/api/bill.py b/core/api/bill.py index c4b7318ee024fc8c6794e3c6e1c26507ff13e5c7..d4af8f6cc0f4c4758709710bf605edd383edd08c 100644 --- a/core/api/bill.py +++ b/core/api/bill.py @@ -8,10 +8,6 @@ from rest_framework import permissions, authentication class BillListCreate(mixins.ListModelMixin, mixins.CreateModelMixin, generics.GenericAPIView): queryset = Bill.objects.all() serializer_class = BillSerializer - # authentication_classes = [ - # authentication.SessionAuthentication, - # authentication.TokenAuthentication - # ] permission_classes = (permissions.IsAuthenticated,) def get(self, request, *args, **kwargs): diff --git a/core/api/billPriceSum.py b/core/api/billPriceSum.py index 388c1290ba0920d311ce1d581423574b391f50cc..e56e073beca8b27cd0cf96262c86454a8929c510 100644 --- a/core/api/billPriceSum.py +++ b/core/api/billPriceSum.py @@ -15,17 +15,18 @@ class BillSumPriceListView(generics.ListAPIView): categorieModel = { 1: "Food", - 2: "Groceries", - 3: "Transportation", - 4: "clothing", - 5: "Entertainment", - 6: "Bill", - 7: "Sports", - 8: "Electronics", - 9: "Travel", - 10: "House & Car", - 11: "Salary", - 12: "Others" + 2: "Transportation", + 3: "Shopping", + 4: "Entertainment", + 5: "Housing", + 6: "Utilities", + 7: "Other", + 8: "Salary", + 9: "Interest", + 10: "Investment", + 11: "Child benefit", + 12: "Pension", + 13: "Income", } queryset = self.filter_queryset(self.get_queryset()) user = None