Move template sandbox to its own app
Improve UI for the sandbox template textarea. Signed-off-by: Roberto Rosario <roberto.rosario@mayan-edms.com>
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
from __future__ import absolute_import, unicode_literals
|
||||
|
||||
from django import forms
|
||||
|
||||
from .widgets import TemplateWidget
|
||||
|
||||
|
||||
class TemplateField(forms.CharField):
|
||||
widget = TemplateWidget
|
||||
|
||||
def __init__(self, *args, **kwargs):
|
||||
self.model = kwargs.pop('model')
|
||||
self.model_variable = kwargs.pop('model_variable')
|
||||
super(TemplateField, self).__init__(*args, **kwargs)
|
||||
Reference in New Issue
Block a user