Jacob Babor f87bdc7d35 Add file hash to things
Hehehe we have plans now
2025-01-24 03:26:16 -06:00

24 lines
778 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', 'released', 'filehash', 'id']
search_fields = ['name', 'url', 'filehash']
ordering = ['channel', 'name', 'released']
list_filter = ['channel', 'tags', 'released']
@admin.register(Tag)
class TagAdmin(admin.ModelAdmin):
list_display = ['name', 'description', 'id']
search_fields = ['name']
ordering = ['name']