ernestophone.ens.fr/partitions/admin.py

14 lines
312 B
Python
Raw Normal View History

2018-01-04 20:20:30 +01:00
from django.contrib import admin
2022-02-05 16:18:00 +01:00
from .models import Category, Partition, PartitionSet, SetList
2022-01-18 15:36:04 +01:00
class PartitionAdmin(admin.ModelAdmin):
2022-02-05 16:18:00 +01:00
list_filter = ("morceau",)
admin.site.register(Category)
admin.site.register(PartitionSet)
admin.site.register(SetList)
2022-02-05 16:18:00 +01:00
admin.site.register(Partition, PartitionAdmin)