We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 45fff3a commit 2395d4aCopy full SHA for 2395d4a
1 file changed
streamfield/views.py
@@ -13,6 +13,11 @@ def admin_instance_class(model, base=DetailView):
13
# will be removed in future. use above approach to override admin template.
14
if hasattr(model, 'custom_admin_template'):
15
tmpl_name = model.custom_admin_template
16
+ import warnings
17
+ warnings.warn(
18
+ "'custom_admin_template' will be removed in future. "
19
+ "Use override admin template approach instead",
20
+ DeprecationWarning, stacklevel=2)
21
else:
22
tmpl_name = tmpl.template.name
23
0 commit comments