add new app
This commit is contained in:
10
core/apps/wherehouse/admin/wherehouse.py
Normal file
10
core/apps/wherehouse/admin/wherehouse.py
Normal file
@@ -0,0 +1,10 @@
|
||||
from django.contrib import admin
|
||||
|
||||
from core.apps.wherehouse.models.wherehouse import WhereHouse
|
||||
|
||||
|
||||
@admin.register(WhereHouse)
|
||||
class WhereHouseAdmin(admin.ModelAdmin):
|
||||
list_display = ['name', 'address', 'branch']
|
||||
search_fields = ['name', 'address']
|
||||
list_filter = ['branch']
|
||||
Reference in New Issue
Block a user