Skip to content
Snippets Groups Projects
Verified Commit 7862af70 authored by Ernesto Rico Schmidt's avatar Ernesto Rico Schmidt
Browse files

style: organize the admin fields

parent c71d206c
No related branches found
No related tags found
No related merge requests found
Pipeline #3499 passed
......@@ -18,6 +18,7 @@ from program.models import (
@admin.register(Category, FundingCategory, MusicFocus, Topic, Type)
class AdminWithNameSlugIsActive(admin.ModelAdmin):
fields = ("is_active", "name", "slug")
list_display = ("name", "slug", "is_active")
......@@ -36,11 +37,13 @@ class HostAdmin(admin.ModelAdmin):
@admin.register(Language)
class LanguageAdmin(admin.ModelAdmin):
fields = ("is_active", "name")
list_display = ("name", "is_active")
@admin.register(RRule)
class RRuleAdmin(admin.ModelAdmin):
fields = ("name", "freq", "interval", "by_set_pos", "by_weekdays", "count")
list_display = ("name", "freq", "interval", "by_set_pos", "by_weekdays", "count")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment