diff --git a/manage_events/api/views.py b/manage_events/api/views.py index f204ff9..7efd591 100644 --- a/manage_events/api/views.py +++ b/manage_events/api/views.py @@ -606,6 +606,8 @@ class EventFilterByLocationAPIView(APIView): user_location = IAmPrincipalLocation.objects.filter( principal=principal ).last() + print("user_location: ", user_location) + print("principal_user_location: ", user_location.principal) user_lat = user_location.latitude user_lon = user_location.longitude except IAmPrincipalLocation.DoesNotExist: diff --git a/manage_notifications/models.py b/manage_notifications/models.py index 2f27be6..b3f0143 100644 --- a/manage_notifications/models.py +++ b/manage_notifications/models.py @@ -68,7 +68,7 @@ class InAppNotification(BaseModel): message = models.TextField() notification_category = models.CharField( max_length=50, - choices=NotificationCategoryChoices.choices, + choices=[(choice.value, choice.label) for choice in NotificationCategoryChoices], ) def __str__(self):