Skip to content

Commit

Permalink
fix: django admin search on FK field
Browse files Browse the repository at this point in the history
  • Loading branch information
iloveagent57 committed Apr 9, 2024
1 parent 15a2083 commit ccf0c28
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions enterprise_access/apps/content_assignments/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ class LearnerContentAssignmentAdmin(DjangoQLSearchMixin, SimpleHistoryAdmin):
'uuid',
'learner_email',
'lms_user_id',
'assignment_configuration',
'assignment_configuration__uuid',
'assignment_configuration__enterprise_customer_uuid',
)
list_filter = ('state',)
Expand Down Expand Up @@ -124,7 +124,7 @@ class LearnerContentAssignmentActionAdmin(DjangoQLSearchMixin, SimpleHistoryAdmi
ordering = ['-modified']
search_fields = (
'uuid',
'assignment',
'assignment__uuid',
'traceback',
)
list_filter = ('action_type', 'error_reason')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ class PolicyGroupAssociationAdmin(admin.ModelAdmin):
Admin configuration for PolicyGroupAssociation
"""
search_fields = (
'subsidy_access_policy',
'subsidy_access_policy__uuid',
'enterprise_group_uuid',
)

Expand Down

0 comments on commit ccf0c28

Please sign in to comment.