From 41bb48bdff592af5b4cfe067fe7b731367dc112e Mon Sep 17 00:00:00 2001 From: Anuj Sharma Date: Mon, 22 Mar 2021 07:41:46 +0530 Subject: [PATCH] * change template name --- django_admin_sbf/admin.py | 2 +- .../{custom_change_list.html => sbf_custom_change_list.html} | 0 .../{custom_search_form.html => sbf_custom_search_form.html} | 0 django_admin_sbf/templatetags/custom_search_form.py | 2 +- 4 files changed, 2 insertions(+), 2 deletions(-) rename django_admin_sbf/templates/admin/{custom_change_list.html => sbf_custom_change_list.html} (100%) rename django_admin_sbf/templates/admin/{custom_search_form.html => sbf_custom_search_form.html} (100%) diff --git a/django_admin_sbf/admin.py b/django_admin_sbf/admin.py index 95e5471..573c895 100644 --- a/django_admin_sbf/admin.py +++ b/django_admin_sbf/admin.py @@ -13,7 +13,7 @@ class DjangoAdminSBF(ModelAdmin): Extend this class to add advanced search in the admin panel """ - change_list_template = 'admin/custom_change_list.html' + change_list_template = 'admin/sbf_custom_change_list.html' def get_changelist(self, request, **kwargs): from .admin_forms import CustomChangeList diff --git a/django_admin_sbf/templates/admin/custom_change_list.html b/django_admin_sbf/templates/admin/sbf_custom_change_list.html similarity index 100% rename from django_admin_sbf/templates/admin/custom_change_list.html rename to django_admin_sbf/templates/admin/sbf_custom_change_list.html diff --git a/django_admin_sbf/templates/admin/custom_search_form.html b/django_admin_sbf/templates/admin/sbf_custom_search_form.html similarity index 100% rename from django_admin_sbf/templates/admin/custom_search_form.html rename to django_admin_sbf/templates/admin/sbf_custom_search_form.html diff --git a/django_admin_sbf/templatetags/custom_search_form.py b/django_admin_sbf/templatetags/custom_search_form.py index eaf6db9..57e1fc8 100644 --- a/django_admin_sbf/templatetags/custom_search_form.py +++ b/django_admin_sbf/templatetags/custom_search_form.py @@ -4,7 +4,7 @@ register = template.Library() -@register.inclusion_tag('admin/custom_search_form.html', takes_context=False) +@register.inclusion_tag('admin/sbf_custom_search_form.html', takes_context=False) def advanced_search_form(cl): """ Displays a search form for searching the list.