ernestophone.ens.fr/partitions/admin.py
2022-01-18 15:36:04 +01:00

11 lines
348 B
Python

from django.contrib import admin
from .models import Category, PartitionSet, SetList, Partition
class PartitionAdmin(admin.ModelAdmin):
list_filter = ( 'morceau', )
list_display = ('part','morceau')
admin.site.register(Category)
admin.site.register(PartitionSet)
admin.site.register(SetList)
admin.site.register(Partition,PartitionAdmin)