Add search fields to survey admin
This commit is contained in:
parent
83da3dbfcd
commit
3278774876
|
|
@ -38,6 +38,8 @@ class JSONAdmin(admin.ModelAdmin):
|
|||
@admin.register(Survey)
|
||||
class SurveyAdmin(JSONAdmin):
|
||||
list_display = ('title', 'link',)
|
||||
list_filter = ('module',)
|
||||
search_fields = ('title', 'data')
|
||||
|
||||
def link(self, obj):
|
||||
return format_html('<a href="/survey/{id}" target="_blank">Link</a>', id=to_global_id('SurveyNode', obj.pk))
|
||||
|
|
|
|||
Loading…
Reference in New Issue