|
|
@@ -21,6 +21,6 @@ class ExtendedURLField(fields.URLField):
|
|
21
|
21
|
def to_python(self, value):
|
|
22
|
22
|
# We need to avoid having 'http' inserted at the start of
|
|
23
|
23
|
# every value
|
|
24
|
|
- if value.startswith('/'):
|
|
|
24
|
+ if value and value.startswith('/'):
|
|
25
|
25
|
return value
|
|
26
|
26
|
return super(ExtendedURLField, self).to_python(value)
|