From 57e4fe86ee543107671f142ed1de5fedde32a8cc Mon Sep 17 00:00:00 2001 From: jogorska Date: Thu, 8 Aug 2024 21:29:51 +0100 Subject: [PATCH] feat: #259 Replace raw_id field with autocomplete_field as it's more practical when searching for user, although may affect performance of the form in large number of sets --- invitations/admin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/invitations/admin.py b/invitations/admin.py index 821f822..4b9ccac 100644 --- a/invitations/admin.py +++ b/invitations/admin.py @@ -14,7 +14,7 @@ @admin.register(Invitation) class InvitationAdmin(admin.ModelAdmin): list_display = ("email", "sent", "accepted") - raw_id_fields = ("inviter",) + autocomplete_fields = ["question"] def get_form(self, request, obj=None, **kwargs): if obj: