Skip to content

Commit

Permalink
#1395: Search in video history and revision history in admin
Browse files Browse the repository at this point in the history
  • Loading branch information
susanodd committed Nov 25, 2024
1 parent 65dc3e5 commit a84cb31
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions signbank/dictionary/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -684,6 +684,7 @@ class GlossRevisionAdmin(VersionAdmin):
list_display = ['time', 'user', 'dataset', 'gloss', 'field_name', 'old_value', 'new_value']
readonly_fields = ['user', 'gloss', 'field_name', 'old_value', 'new_value', 'time', 'old_value']
list_filter = (GlossRevisionDatasetFilter, GlossRevisionUserFilter,)
search_fields = ['gloss__lemma__lemmaidglosstranslation__text']

def has_add_permission(self, request):
return False
Expand All @@ -699,6 +700,7 @@ class DeletedGlossOrMediaAdmin(admin.ModelAdmin):

list_display = ['item_type', 'idgloss', 'annotation_idgloss', 'old_pk', 'filename', 'deletion_date']
readonly_fields = ['item_type', 'idgloss', 'annotation_idgloss', 'old_pk', 'filename', 'deletion_date']
search_fields = ['idgloss', 'annotation_idgloss']

def has_add_permission(self, request):
return False
Expand Down

0 comments on commit a84cb31

Please sign in to comment.