gnousdoteu-v3/apps/gnous_eu/admin.py

25 lines
571 B
Python
Raw Normal View History

2020-05-16 02:12:21 +02:00
from django.contrib import admin
from apps.gnous_eu.models import Service
class ServicesAdmin(admin.ModelAdmin):
list_display = (
"id",
"name",
"sources",
"hosted",
"domain_tag",
"image_tag",
"hidden",
)
fieldsets = [
("Global", {"fields": ["name", "domain", "photo"]}),
("Descriptions", {"fields": ["description", "description_en"]}),
2020-05-16 02:12:21 +02:00
("Types", {"fields": ["sources", "hosted"]}),
("Misc", {"fields": ["hidden"]}),
]
admin.site.register(Service, ServicesAdmin)