Added unittest for node_url templatetag. Fixed issues uncovered with unittests. Added...
[philo.git] / models / fields.py
index 79b31b3..dbf1886 100644 (file)
@@ -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: