Skip to content

Commit

Permalink
Group fieldsets.
Browse files Browse the repository at this point in the history
  • Loading branch information
jchristgit committed Oct 11, 2019
1 parent 6fa19e0 commit 8309c94
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pydis_site/apps/api/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ class LogEntryAdmin(admin.ModelAdmin):
"""Allows viewing logs in the Django Admin without allowing edits."""

list_display = ('timestamp', 'application', 'level', 'message')
fieldsets = (
('Overview', {'fields': ('timestamp', 'application', 'logger_name')}),
('Metadata', {'fields': ('level', 'module', 'line')}),
('Contents', {'fields': ('message',)})
)
readonly_fields = (
'application',
'logger_name',
Expand Down

0 comments on commit 8309c94

Please sign in to comment.