diff --git a/api/serializers.py b/api/serializers.py index fb8a0cdd..e5d77754 100644 --- a/api/serializers.py +++ b/api/serializers.py @@ -493,7 +493,7 @@ class OrderDetailSerializer(serializers.ModelSerializer): class ListNotificationSerializer(serializers.ModelSerializer): class Meta: model = Notification - fields = ("title", "description", "order_id", "order_status") + fields = ("title", "description", "order_id", "status") class OrderPublicSerializer(serializers.ModelSerializer): diff --git a/api/views.py b/api/views.py index 171dfe24..bd7ddd89 100644 --- a/api/views.py +++ b/api/views.py @@ -764,7 +764,7 @@ class NotificationsView(ListAPIView): data["title"] = str(notification.title) data["description"] = str(notification.description) data["order_id"] = notification.order.id - data["order_status"] = notification.order.status + data["status"] = notification.order.status notification_data.append(data)