24 lines
513 B
Python
24 lines
513 B
Python
|
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", "description"]}),
|
||
|
("Types", {"fields": ["sources", "hosted"]}),
|
||
|
("Misc", {"fields": ["hidden"]}),
|
||
|
]
|
||
|
|
||
|
|
||
|
admin.site.register(Service, ServicesAdmin)
|