Added services missing migrations

This commit is contained in:
Marc Aymerich 2016-04-28 10:34:54 +00:00
parent e8b0b639ee
commit b89440a8f3
2 changed files with 2 additions and 5 deletions

View File

@ -28,14 +28,11 @@ class LogEntryAdmin(admin.ModelAdmin):
) )
actions = None actions = None
list_select_related = ('user', 'content_type') list_select_related = ('user', 'content_type')
list_display_links = None
user_link = admin_link('user') user_link = admin_link('user')
display_action_time = admin_date('action_time', short_description=_("Time")) display_action_time = admin_date('action_time', short_description=_("Time"))
def __init__(self, *args, **kwargs):
super(LogEntryAdmin, self).__init__(*args, **kwargs)
self.list_display_links = (None, )
def display_message(self, log): def display_message(self, log):
edit = '<a href="%(url)s"><img src="%(img)s"></img></a>' % { edit = '<a href="%(url)s"><img src="%(img)s"></img></a>' % {
'url': reverse('admin:admin_logentry_change', args=(log.pk,)), 'url': reverse('admin:admin_logentry_change', args=(log.pk,)),

View File

@ -46,7 +46,7 @@ class SelectPluginAdminMixin(object):
opts = self.model._meta opts = self.model._meta
info = opts.app_label, opts.model_name info = opts.app_label, opts.model_name
select_urls = [ select_urls = [
url("/select-plugin/$", url("select-plugin/$",
wrap_admin_view(self, self.select_plugin_view), wrap_admin_view(self, self.select_plugin_view),
name='%s_%s_select_plugin' % info), name='%s_%s_select_plugin' % info),
] ]