1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Fixes #434: Increased user actions history on home page from 15 to 50; restored admin UI access but disabled bulk deletion function

This commit is contained in:
Jeremy Stretch
2016-08-06 15:35:13 -04:00
parent c3c3b80cd9
commit 04c9ebd46d
2 changed files with 7 additions and 1 deletions

View File

@ -19,3 +19,9 @@ class TopologyMapAdmin(admin.ModelAdmin):
prepopulated_fields = {
'slug': ['name'],
}
@admin.register(UserAction)
class UserActionAdmin(admin.ModelAdmin):
actions = None
list_display = ['user', 'action', 'content_type', 'object_id', 'message']

View File

@ -43,7 +43,7 @@ def home(request):
return render(request, 'home.html', {
'stats': stats,
'recent_activity': UserAction.objects.select_related('user')[:15]
'recent_activity': UserAction.objects.select_related('user')[:50]
})