dynamic mixin search for all apis

This commit is contained in:
2025-07-31 14:22:27 +03:30
parent b97a6c5893
commit a5b4d302ce
16 changed files with 129 additions and 197 deletions

View File

@@ -383,8 +383,8 @@ JAZZMIN_SETTINGS = {
# Copyright on the footer
"copyright": "Acme Library Ltd",
# List of model admins to search from the search bar, search bar omitted if excluded
# If you want to use a single search field you dont need to use a list, you can use a simple string
# List of model admins to filter from the filter bar, filter bar omitted if excluded
# If you want to use a single filter field you dont need to use a list, you can use a simple string
"search_model": ["auth.User", "auth.Group"],
# Field name on user model that contains avatar ImageField/URLField/Charfield or a callable that receives the user

View File

@@ -37,7 +37,7 @@ urlpatterns = [
path('herd/', include('apps.herd.urls')),
path('livestock/', include('apps.livestock.urls')),
path('tag/', include('apps.tag.urls')),
path('search/', include('apps.search.urls')),
path('filter/', include('apps.search.urls')),
path('product/', include('apps.product.urls')),
path('warehouse/', include('apps.warehouse.urls')),
path('pos_device/', include('apps.pos_device.urls')),