From 56dd53c4d2f8ef60719972b78d1ed81d1dcccbaf Mon Sep 17 00:00:00 2001 From: Henri Nieminen Date: Fri, 22 Nov 2024 10:33:02 +0000 Subject: [PATCH 1/3] fix gdpr url pattern --- mvj/urls.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mvj/urls.py b/mvj/urls.py index 0d8d7bc0..53fcd9a1 100755 --- a/mvj/urls.py +++ b/mvj/urls.py @@ -370,7 +370,7 @@ getattr( settings, "GDPR_API_URL_PATTERN", - "v1/profiles/", + "v1/profiles/", ), MvjGDPRAPIView.as_view(), name="gdpr_v1", From 374797b4a3328d3a6a4700c425c3ae1b933a103f Mon Sep 17 00:00:00 2001 From: Henri Nieminen Date: Fri, 22 Nov 2024 13:39:50 +0000 Subject: [PATCH 2/3] fix missing SerializableMixin on AreaSearchIntendedUse --- plotsearch/models/plot_search.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plotsearch/models/plot_search.py b/plotsearch/models/plot_search.py index 187776ed..b174c0be 100755 --- a/plotsearch/models/plot_search.py +++ b/plotsearch/models/plot_search.py @@ -443,7 +443,7 @@ class FavouriteTarget(models.Model): recursive_get_related_skip_relations = [] -class AreaSearchIntendedUse(SafeDeleteModel, NameModel): +class AreaSearchIntendedUse(SerializableMixin, SafeDeleteModel, NameModel): _safedelete_policy = SOFT_DELETE class Meta(NameModel.Meta): From 26e4d90adc1f68c65724c4a7d1eec2aeb86a06be Mon Sep 17 00:00:00 2001 From: Henri Nieminen Date: Mon, 25 Nov 2024 08:15:34 +0000 Subject: [PATCH 3/3] remove attachment from gdpr api a filefield is not meant to be serialized and caused problems --- plotsearch/models/plot_search.py | 1 - 1 file changed, 1 deletion(-) diff --git a/plotsearch/models/plot_search.py b/plotsearch/models/plot_search.py index b174c0be..a4135f16 100755 --- a/plotsearch/models/plot_search.py +++ b/plotsearch/models/plot_search.py @@ -636,7 +636,6 @@ class AreaSearchAttachment(SerializableMixin, NameModel): # GDPR API serialize_fields = ( {"name": "name"}, - {"name": "attachment"}, {"name": "created_at"}, )