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

14 lines
331 B
Python
Raw Normal View History

2020-12-15 21:32:20 +00:00
from django.contrib import admin
from . import models
# Register your models here.
2020-12-16 14:26:15 +00:00
class BranchAdmin(admin.ModelAdmin):
search_fields = ['name', 'acronym']
class CategoryAdmin(admin.ModelAdmin):
search_fields = ['name']
admin.site.register(models.Branch, BranchAdmin)
admin.site.register(models.Category,CategoryAdmin)