def make_script_vars(self, name):
context = self.process_croppie_context(name)
vars = 'var croppieFieldName = "{}"\n var croppieOptions = {}' \
.format(
context['croppie_field_name'],
context['croppie_options'],
)
return mark_safe(vars)
评论列表
文章目录