1
0
mirror of https://github.com/Damillora/Altessimo synced 2024-10-31 21:17:32 +00:00
Altessimo/songs/admin.py
2020-12-16 21:26:54 +07:00

14 lines
316 B
Python

from django.contrib import admin
from . import models
class SongAdmin(admin.ModelAdmin):
search_fields = ['romanized_title','title']
class OutsideSongAdmin(admin.ModelAdmin):
search_fields = ['title']
admin.site.register(models.Song, SongAdmin)
admin.site.register(models.OutsideSong, OutsideSongAdmin)