X-Git-Url: http://git.ithinksw.org/philo.git/blobdiff_plain/3105e851ce4d7d426b3cffbd601c5b4e12075b41..7ec22cc295e564d14bc47deaca98937d494546a9:/models/fields.py?ds=inline diff --git a/models/fields.py b/models/fields.py index 79b31b3..dbf1886 100644 --- a/models/fields.py +++ b/models/fields.py @@ -147,9 +147,9 @@ class RelationshipField(EntityProxyField): class TemplateField(models.TextField): - def __init__(self, allow=None, disallow=None, *args, **kwargs): + def __init__(self, allow=None, disallow=None, secure=True, *args, **kwargs): super(TemplateField, self).__init__(*args, **kwargs) - self.validators.append(TemplateValidator(allow, disallow)) + self.validators.append(TemplateValidator(allow, disallow, secure)) try: