2 # Parent ce4f14789a5be4e86db2f9ac05a168209745c18d
3 diff -r ce4f14789a5b -r 866aea4738b9 grical/events/forms.py
4 --- a/grical/events/forms.py Thu Aug 15 15:00:34 2013 +0200
5 +++ b/grical/events/forms.py Thu Aug 15 16:37:25 2013 +0200
7 'invalid': _(u'Enter a valid URL.'),
8 'invalid_link': _(u'This URL appears to be a broken link.'),
10 - def __init__(self, verify_exists=False,
11 - validator_user_agent=validators.URL_VALIDATOR_USER_AGENT,
13 + def __init__(self, *args, **kwargs):
14 super(URLFieldExtended, self).__init__( *args, **kwargs )
15 - self.validators.append( URLValidatorExtended(
16 - verify_exists=verify_exists,
17 - validator_user_agent=validator_user_agent ) )
18 + self.validators.append( URLValidatorExtended( ) )
20 def to_python(self, value):
24 when = DatesTimesField()
25 web = URLFieldExtended(
27 max_length = get_field_attr( 'EventURL', 'url', 'max_length' ) )