1
Fork 0
This repository has been archived on 2024-07-16. You can view files and clone it, but cannot push or open issues or pull requests.
wagtail-draftail-snippet/wagtail_draftail_snippet/utils.py

6 lines
196 B
Python
Raw Normal View History

2020-01-08 04:41:21 +00:00
from wagtail.core.utils import camelcase_to_underscore
def get_snippet_frontend_template(app_name, model_name):
return "%s/%s_snippet.html" % (app_name, camelcase_to_underscore(model_name))