Skip to content

Commit

Permalink
[#233] Fix admin
Browse files Browse the repository at this point in the history
  • Loading branch information
danielmursa-dev committed Nov 18, 2024
1 parent 968bcc6 commit 6bf4398
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions src/openklant/components/klantinteracties/admin/partijen.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
PartijIdentificator,
Persoon,
Vertegenwoordigden,
PartijIdentificatorCodeRegister,
PartijIdentificatorCodeObjectType,
PartijIdentificatorCodeSoortObjectId,
)


Expand Down Expand Up @@ -80,6 +83,24 @@ class OrganisatieInlineAdmin(admin.StackedInline):
extra = 0


@admin.register(PartijIdentificatorCodeSoortObjectId)
class PartijIdentificatorCodeSoortObjectIdAdmin(admin.ModelAdmin):
readonly_fields = ("uuid",)
model = PartijIdentificatorCodeSoortObjectId


@admin.register(PartijIdentificatorCodeObjectType)
class PartijIdentificatorCodeObjectTypeAdmin(admin.ModelAdmin):
readonly_fields = ("uuid",)
model = PartijIdentificatorCodeObjectType


@admin.register(PartijIdentificatorCodeRegister)
class PartijIdentificatorCodeRegisterAdmin(admin.ModelAdmin):
readonly_fields = ("uuid",)
model = PartijIdentificatorCodeRegister


@admin.register(Partij)
class PartijAdmin(admin.ModelAdmin):
list_display = (
Expand Down

0 comments on commit 6bf4398

Please sign in to comment.