From 25b99379478e555ec92189c41cb75c67ee541c0a Mon Sep 17 00:00:00 2001 From: Jose Buitron Date: Wed, 7 Feb 2024 14:36:34 -0500 Subject: [PATCH] fix: Added SharedResource to admin, fixed typo --- terraso_backend/apps/core/admin.py | 6 ++++++ terraso_backend/apps/core/models/shared_resources.py | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/terraso_backend/apps/core/admin.py b/terraso_backend/apps/core/admin.py index 6eac68fd5..a3e0e3979 100644 --- a/terraso_backend/apps/core/admin.py +++ b/terraso_backend/apps/core/admin.py @@ -20,6 +20,7 @@ Landscape, LandscapeDevelopmentStrategy, LandscapeGroup, + SharedResource, TaxonomyTerm, User, UserPreference, @@ -69,3 +70,8 @@ class TaxonomyTermAdmin(admin.ModelAdmin): @admin.register(LandscapeDevelopmentStrategy) class LandscapeDevelopmentStrategyAdmin(admin.ModelAdmin): list_display = ("id", "landscape") + + +@admin.register(SharedResource) +class SharedResourceAdmin(admin.ModelAdmin): + list_display = ("id", "share_uuid", "share_access") diff --git a/terraso_backend/apps/core/models/shared_resources.py b/terraso_backend/apps/core/models/shared_resources.py index 3ef9c4114..e45d81523 100644 --- a/terraso_backend/apps/core/models/shared_resources.py +++ b/terraso_backend/apps/core/models/shared_resources.py @@ -37,7 +37,7 @@ class SharedResource(BaseModel): SHARE_ACCESS_TYPES = ( (SHARE_ACCESS_NO, _("No share access")), (SHARE_ACCESS_ALL, _("Anyone with the link")), - (SHARE_ACCESS_TARGET_MEMBERS, _("Only tagert members")), + (SHARE_ACCESS_TARGET_MEMBERS, _("Only target members")), ) source = GenericForeignKey("source_content_type", "source_object_id")