24 lines
725 B
Python

from django.contrib import admin
from .models import OdyseeChannel, OdyseeRelease, Tag
# Register your models here.
@admin.register(OdyseeChannel)
class OdyseeChannelAdmin(admin.ModelAdmin):
list_display = ['name', 'handle', 'description', 'id']
search_fields = ['name', 'description', 'handle']
ordering = ['name']
@admin.register(OdyseeRelease)
class OdyseeReleaseAdmin(admin.ModelAdmin):
list_display = ['name', 'channel', 'url', 'id']
search_fields = ['name', 'url']
ordering = ['channel', 'name']
list_filter = ['channel', 'tags']
@admin.register(Tag)
class TagAdmin(admin.ModelAdmin):
list_display = ['name', 'description', 'id']
search_fields = ['name']
ordering = ['name']