1
0
mirror of https://github.com/Damillora/Altessimo synced 2024-11-22 05:57:31 +00:00
Altessimo/songs/admin.py

14 lines
316 B
Python
Raw Normal View History

2020-12-15 21:32:20 +00:00
from django.contrib import admin
from . import models
2020-12-16 07:29:08 +00:00
2020-12-16 14:26:15 +00:00
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)