9 lines
359 B
Python
9 lines
359 B
Python
from wagtail.core.utils import camelcase_to_underscore
|
|
|
|
|
|
def get_snippet_link_frontend_template(app_name, model_name):
|
|
return "%s/%s_snippet_link.html" % (app_name, camelcase_to_underscore(model_name))
|
|
|
|
|
|
def get_snippet_embed_frontend_template(app_name, model_name):
|
|
return "%s/%s_snippet_embed.html" % (app_name, camelcase_to_underscore(model_name))
|