Skip to content

Commit

Permalink
feat: jazzband#259 Replace raw_id field with autocomplete_field as it…
Browse files Browse the repository at this point in the history
…'s more practical when searching for user, although may affect performance of the form in large number of sets
  • Loading branch information
JoGorska committed Aug 8, 2024
1 parent da2e3b2 commit 57e4fe8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion invitations/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 57e4fe8

Please sign in to comment.