Skip to content

Commit

Permalink
feat: case-insensitive search fields on customer agreement admin.
Browse files Browse the repository at this point in the history
ENT-8636
  • Loading branch information
iloveagent57 committed May 2, 2024
1 parent 217d3c6 commit 68a5566
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions license_manager/apps/subscriptions/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -405,8 +405,8 @@ class CustomerAgreementAdmin(admin.ModelAdmin):
search_fields = (
'uuid__startswith',
'enterprise_customer_uuid__startswith',
'enterprise_customer_slug__startswith',
'enterprise_customer_name__startswith',
'enterprise_customer_slug__istartswith',
'enterprise_customer_name__istartswith',
)
actions = ['sync_agreement_with_enterprise_customer']

Expand Down Expand Up @@ -711,8 +711,8 @@ class LicenseTransferJobAdmin(admin.ModelAdmin):

search_fields = (
'customer_agreement__enterprise_customer_uuid__startswith',
'customer_agreement__enterprise_customer_slug__startswith',
'customer_agreement__enterprise_customer_name__startswith',
'customer_agreement__enterprise_customer_slug__istartswith',
'customer_agreement__enterprise_customer_name__istartswith',
'old_subscription_plan',
'new_subscription_plan',
)
Expand Down

0 comments on commit 68a5566

Please sign in to comment.