Browse Source

Otimiza codigo de filtro de url

pull/713/head
Eduardo Calil 8 years ago
parent
commit
ae201177b4
  1. 4
      sapl/base/templatetags/common_tags.py

4
sapl/base/templatetags/common_tags.py

@ -144,8 +144,6 @@ def str2intabs(value):
@register.filter
def url(value):
# import ipdb; ipdb.set_trace()
string = value[:8]
if 'http://' in string or 'https://' in string:
if value.startswith('http://') or value.startswith('https://'):
return True
return False

Loading…
Cancel
Save