1
0
mirror of https://github.com/Damillora/Altessimo synced 2024-11-21 21:47:33 +00:00
Altessimo/categories/admin.py
2020-12-16 21:26:54 +07:00

14 lines
331 B
Python

from django.contrib import admin
from . import models
# Register your models here.
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)