Update history app's icon
This commit is contained in:
@@ -2,8 +2,8 @@ from __future__ import absolute_import
|
||||
|
||||
from django.utils.translation import ugettext_lazy as _
|
||||
|
||||
from app_registry.models import App
|
||||
from app_registry.classes import ModelBackup
|
||||
#from app_registry.models import App
|
||||
#from app_registry.classes import ModelBackup
|
||||
from common.utils import encapsulate
|
||||
from navigation.api import bind_links, register_model_list_columns
|
||||
from project_tools.api import register_tool
|
||||
@@ -31,10 +31,10 @@ register_model_list_columns(History, [
|
||||
|
||||
bind_links([History], [history_details])
|
||||
|
||||
try:
|
||||
app = App.register('history', _(u'History'))
|
||||
except App.UnableToRegister:
|
||||
pass
|
||||
else:
|
||||
app.set_backup([ModelBackup()])
|
||||
app.set_dependencies(['app_registry'])
|
||||
#try:
|
||||
# app = App.register('history', _(u'History'))
|
||||
#except App.UnableToRegister:
|
||||
# pass
|
||||
#else:
|
||||
# app.set_backup([ModelBackup()])
|
||||
# app.set_dependencies(['app_registry'])
|
||||
|
||||
Reference in New Issue
Block a user