validation of URL fields
diff --git a/planetstack/core/models/plcorebase.py b/planetstack/core/models/plcorebase.py
index dee8a87..3bceb08 100644
--- a/planetstack/core/models/plcorebase.py
+++ b/planetstack/core/models/plcorebase.py
@@ -94,6 +94,8 @@
l = []
if field.blank==False:
l.append("notBlank")
+ if field.__class__.__name__=="URLField":
+ l.append("url")
validators[field.name] = l
return validators
@@ -144,6 +146,8 @@
l = []
if field.blank==False:
l.append("notBlank")
+ if field.__class__.__name__=="URLField":
+ l.append("url")
validators[field.name] = l
return validators