From 26fa90d9bbd36f7d035a86d9b057028501bacdf5 Mon Sep 17 00:00:00 2001 From: Henri Nieminen <118905702+henrinie-nc@users.noreply.github.com> Date: Mon, 25 Nov 2024 10:25:58 +0200 Subject: [PATCH] fixes to gdpr api (#777) * fix gdpr url pattern * fix missing SerializableMixin on AreaSearchIntendedUse * remove attachment from gdpr api --- mvj/urls.py | 2 +- plotsearch/models/plot_search.py | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) 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", diff --git a/plotsearch/models/plot_search.py b/plotsearch/models/plot_search.py index 187776ed..a4135f16 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): @@ -636,7 +636,6 @@ class AreaSearchAttachment(SerializableMixin, NameModel): # GDPR API serialize_fields = ( {"name": "name"}, - {"name": "attachment"}, {"name": "created_at"}, )