1
from django.utils.translation import ugettext_lazy as _
1
from django.utils.translation import ugettext_lazy as _ # noqa
5
# Rename "cats" to "wildcats"
6
cats = horizon.get_dashboard("cats")
7
cats.name = _("WildCats")
10
tigers = cats.get_panel("tigers")
11
cats.unregister(tigers.__class__)
13
# Remove dogs dashboard
14
dogs = horizon.get_dashboard("dogs")
15
horizon.unregister(dogs.__class__)
4
from horizon import base
6
# Rename "cats" to "wildcats", ignore if panel doesn't exist
8
cats = horizon.get_dashboard("cats")
9
cats.name = _("WildCats")
10
except base.NotRegistered:
13
# Disable tigers panel, ignore if panel doesn't exist
16
tigers = cats.get_panel("tigers")
17
cats.unregister(tigers.__class__)
18
except base.NotRegistered:
21
# Remove dogs dashboard, ignore if dashboard doesn't exist
23
dogs = horizon.get_dashboard("dogs")
24
horizon.unregister(dogs.__class__)
25
except base.NotRegistered: