diff --git a/src/openklant/components/klantinteracties/admin/actoren.py b/src/openklant/components/klantinteracties/admin/actoren.py index 87596dd6..3459cf92 100644 --- a/src/openklant/components/klantinteracties/admin/actoren.py +++ b/src/openklant/components/klantinteracties/admin/actoren.py @@ -53,7 +53,10 @@ class ActorAdmin(admin.ModelAdmin): "soort_actor", "indicatie_actief", ) - search_fields = ("naam",) + search_fields = ( + "naam", + "uuid", + ) inlines = ( ActorKlantcontactInlineAdmin, GeautomatiseerdeActorInlineAdmin, @@ -61,11 +64,13 @@ class ActorAdmin(admin.ModelAdmin): OrganisatorischeEenheidInlineAdmin, InterneTaakInlineAdmin, ) + readonly_fields = ("uuid",) fieldsets = ( ( None, { "fields": [ + "uuid", "naam", "soort_actor", "indicatie_actief", diff --git a/src/openklant/components/klantinteracties/admin/digitaal_adres.py b/src/openklant/components/klantinteracties/admin/digitaal_adres.py index 28a4ada5..d5f525f6 100644 --- a/src/openklant/components/klantinteracties/admin/digitaal_adres.py +++ b/src/openklant/components/klantinteracties/admin/digitaal_adres.py @@ -21,6 +21,9 @@ def clean_adres(self): @admin.register(DigitaalAdres) class DigitaalAdresAdmin(admin.ModelAdmin): readonly_fields = ("uuid",) - search_fields = ("adres",) + search_fields = ( + "adres", + "uuid", + ) autocomplete_fields = ("partij",) form = DigitaalAdresAdminForm diff --git a/src/openklant/components/klantinteracties/admin/internetaken.py b/src/openklant/components/klantinteracties/admin/internetaken.py index cb159b71..f1886044 100644 --- a/src/openklant/components/klantinteracties/admin/internetaken.py +++ b/src/openklant/components/klantinteracties/admin/internetaken.py @@ -28,7 +28,10 @@ class InterneTaakAdmin(admin.ModelAdmin): "toegewezen_op", "afgehandeld_op", ) - search_fields = ("nummer",) + search_fields = ( + "nummer", + "uuid", + ) list_filter = ( "actoren", "status", diff --git a/src/openklant/components/klantinteracties/admin/klantcontacten.py b/src/openklant/components/klantinteracties/admin/klantcontacten.py index c26ee379..155d2bbe 100644 --- a/src/openklant/components/klantinteracties/admin/klantcontacten.py +++ b/src/openklant/components/klantinteracties/admin/klantcontacten.py @@ -15,11 +15,13 @@ class BetrokkeneInlineAdmin(admin.StackedInline): "contactnaam_achternaam", ) autocomplete_fields = ("partij",) + readonly_fields = ("uuid",) fieldsets = [ ( None, { "fields": [ + "uuid", "partij", "klantcontact", "rol", @@ -70,16 +72,19 @@ class BetrokkeneInlineAdmin(admin.StackedInline): @admin.register(Betrokkene) class BetrokkeneAdmin(admin.ModelAdmin): search_fields = ( + "uuid", "contactnaam_voorletters", "contactnaam_voorvoegsel_achternaam", "contactnaam_achternaam", ) autocomplete_fields = ("partij",) + readonly_fields = ("uuid",) fieldsets = [ ( None, { "fields": [ + "uuid", "partij", "klantcontact", "rol", @@ -159,8 +164,12 @@ class KlantcontactAdmin(admin.ModelAdmin): BijlageInlineAdmin, InterneTaakInlineAdmin, ] - search_fields = ("nummer",) + search_fields = ( + "nummer", + "uuid", + ) date_hierarchy = "plaatsgevonden_op" + readonly_fields = ("uuid",) @admin.display(empty_value="---") def betrokkene_namen(self, obj):