Skip to content

Commit

Permalink
Fix sales admin autocomplete filters using __pk__exact (#3685)
Browse files Browse the repository at this point in the history
  • Loading branch information
DeD1rk authored May 15, 2024
1 parent 8a0026a commit 7796d69
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions website/sales/admin/order_admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ class OrderShiftFilter(AutocompleteFilter):
title = _("shift")
field_name = "shift"
rel_model = Order
use_pk_exact = False

def queryset(self, request, queryset):
if self.value():
Expand All @@ -106,6 +107,7 @@ class OrderMemberFilter(AutocompleteFilter):
title = _("member")
field_name = "payer"
rel_model = Order
use_pk_exact = False

def queryset(self, request, queryset):
if self.value():
Expand Down

0 comments on commit 7796d69

Please sign in to comment.