Commit c92c95d6 authored by Andrey Vertiprahov's avatar Andrey Vertiprahov
Browse files

Merge branch 'noc-941' into 'microservices'

#941 main.customfield: Fix table name show

See merge request !1185
parents 6ad2efaa 1e0020e3
Pipeline #8137 passed with stages
in 6 minutes and 42 seconds
......@@ -2,12 +2,12 @@
# ---------------------------------------------------------------------
# main.customfield application
# ---------------------------------------------------------------------
# Copyright (C) 2007-2012 The NOC Project
# Copyright (C) 2007-2018 The NOC Project
# See LICENSE for details
# ---------------------------------------------------------------------
# NOC modules
from noc.lib.app.extmodelapplication import ExtModelApplication, view
from noc.lib.app.extmodelapplication import ExtModelApplication
from noc.main.models import CustomField
from noc.core.translation import ugettext as _
......@@ -21,3 +21,6 @@ class CustomFieldApplication(ExtModelApplication):
model = CustomField
icon = "icon_cog_add"
query_fields = ["name", "description", "table"]
def field_table__label(self, obj):
return obj.table
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment