From bc20f519bcef9df60865686b103263499949fefc Mon Sep 17 00:00:00 2001 From: Simon Kelly Date: Wed, 20 Sep 2023 12:20:49 +0200 Subject: [PATCH 1/2] add claim model to admin --- commcare_connect/opportunity/admin.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/commcare_connect/opportunity/admin.py b/commcare_connect/opportunity/admin.py index 11ec3fc5..69503169 100644 --- a/commcare_connect/opportunity/admin.py +++ b/commcare_connect/opportunity/admin.py @@ -9,6 +9,7 @@ LearnModule, Opportunity, OpportunityAccess, + OpportunityClaim, UserVisit, ) @@ -22,6 +23,7 @@ admin.site.register(CompletedModule) admin.site.register(Assessment) admin.site.register(UserVisit) +admin.site.register(OpportunityClaim) @admin.register(OpportunityAccess) From b089716073b917f90ad8554c8330650169e81869 Mon Sep 17 00:00:00 2001 From: Simon Kelly Date: Wed, 20 Sep 2023 12:28:17 +0200 Subject: [PATCH 2/2] add admin for connect ID user link --- commcare_connect/users/admin.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/commcare_connect/users/admin.py b/commcare_connect/users/admin.py index 0c4a5855..8aac1bb1 100644 --- a/commcare_connect/users/admin.py +++ b/commcare_connect/users/admin.py @@ -5,6 +5,7 @@ from commcare_connect.organization.models import Organization, UserOrganizationMembership from commcare_connect.users.forms import OrganizationCreationForm, UserAdminChangeForm, UserAdminCreationForm +from commcare_connect.users.models import ConnectIDUserLink User = get_user_model() @@ -56,3 +57,6 @@ class OrganizationAdmin(admin.ModelAdmin): search_fields = ["name"] ordering = ["name"] inlines = [UserOrganizationMembershipInline] + + +admin.site.register(ConnectIDUserLink)