Browse Source

Allow searching in the error field in Notifications admin

pull/468/head
Pēteris Caune 4 years ago
parent
commit
f607ee67d5
No known key found for this signature in database GPG Key ID: E28D7679E9A9EDE2
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      hc/api/admin.py

+ 2
- 2
hc/api/admin.py View File

@ -1,7 +1,7 @@
from django.contrib import admin from django.contrib import admin
from django.core.paginator import Paginator from django.core.paginator import Paginator
from django.db import connection from django.db import connection
from django.db.models import Count, F
from django.db.models import F
from django.urls import reverse from django.urls import reverse
from django.utils.html import escape from django.utils.html import escape
from django.utils.safestring import mark_safe from django.utils.safestring import mark_safe
@ -209,7 +209,7 @@ class ChannelsAdmin(admin.ModelAdmin):
@admin.register(Notification) @admin.register(Notification)
class NotificationsAdmin(admin.ModelAdmin): class NotificationsAdmin(admin.ModelAdmin):
search_fields = ["owner__name", "owner__code", "channel__value"]
search_fields = ["owner__name", "owner__code", "channel__value", "error"]
readonly_fields = ("owner",) readonly_fields = ("owner",)
list_select_related = ("owner", "channel") list_select_related = ("owner", "channel")
list_display = ( list_display = (


Loading…
Cancel
Save