diff --git a/src/openklant/components/klantinteracties/admin/partijen.py b/src/openklant/components/klantinteracties/admin/partijen.py index a26e58f8..67399b50 100644 --- a/src/openklant/components/klantinteracties/admin/partijen.py +++ b/src/openklant/components/klantinteracties/admin/partijen.py @@ -15,6 +15,9 @@ PartijIdentificator, Persoon, Vertegenwoordigden, + PartijIdentificatorCodeRegister, + PartijIdentificatorCodeObjectType, + PartijIdentificatorCodeSoortObjectId, ) @@ -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 = (