Skip to content

Commit

Permalink
admin: search IngestJobs by suid text
Browse files Browse the repository at this point in the history
  • Loading branch information
aaxelb committed Feb 10, 2021
1 parent f0d69a6 commit 04ad89b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions share/admin/jobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ class IngestJobAdmin(BaseJobAdmin):
list_display = ('id', 'source_config_', 'suid_', 'status_', 'date_started', 'error_type', 'share_version', )
list_select_related = BaseJobAdmin.list_select_related + ('suid',)
readonly_fields = BaseJobAdmin.readonly_fields + ('transformer_version', 'regulator_version', 'retries')
search_fields = ['=id', '=suid__identifier']

def suid_(self, obj):
return obj.suid.identifier
Expand Down

0 comments on commit 04ad89b

Please sign in to comment.