Skip to content

Commit

Permalink
fixes to gdpr api (#777)
Browse files Browse the repository at this point in the history
* fix gdpr url pattern

* fix missing SerializableMixin on AreaSearchIntendedUse

* remove attachment from gdpr api
  • Loading branch information
henrinie-nc authored Nov 25, 2024
1 parent 74f8cc1 commit 26fa90d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion mvj/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@
getattr(
settings,
"GDPR_API_URL_PATTERN",
"v1/profiles/<uuid:pk>",
"v1/profiles/<uuid:uuid>",
),
MvjGDPRAPIView.as_view(),
name="gdpr_v1",
Expand Down
3 changes: 1 addition & 2 deletions plotsearch/models/plot_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -636,7 +636,6 @@ class AreaSearchAttachment(SerializableMixin, NameModel):
# GDPR API
serialize_fields = (
{"name": "name"},
{"name": "attachment"},
{"name": "created_at"},
)

Expand Down

0 comments on commit 26fa90d

Please sign in to comment.