Skip to content

Commit

Permalink
Merge pull request #122 from dimagi/sk/claim-admin
Browse files Browse the repository at this point in the history
add models to admin
  • Loading branch information
snopoke authored Sep 20, 2023
2 parents 6d7ddd5 + b089716 commit b5894e0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions commcare_connect/opportunity/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
LearnModule,
Opportunity,
OpportunityAccess,
OpportunityClaim,
UserVisit,
)

Expand All @@ -22,6 +23,7 @@
admin.site.register(CompletedModule)
admin.site.register(Assessment)
admin.site.register(UserVisit)
admin.site.register(OpportunityClaim)


@admin.register(OpportunityAccess)
Expand Down
4 changes: 4 additions & 0 deletions commcare_connect/users/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down Expand Up @@ -56,3 +57,6 @@ class OrganizationAdmin(admin.ModelAdmin):
search_fields = ["name"]
ordering = ["name"]
inlines = [UserOrganizationMembershipInline]


admin.site.register(ConnectIDUserLink)

0 comments on commit b5894e0

Please sign in to comment.