Changes between Version 1 and Version 2 of Ticket #5331, comment 4
- Timestamp:
- Feb 15, 2011, 11:32:24 AM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #5331, comment 4
v1 v2 5 5 #django/db/models/fields/__init__.py 6 6 7 class URLField:8 #snip9 def formfield(self, **kwargs):10 if 'form_class' not in kwargs:11 kwargs['form_class'] = forms.URLField12 return super(URLField, self).formfield(**kwargs)7 class URLField: 8 #snip 9 def formfield(self, **kwargs): 10 if 'form_class' not in kwargs: 11 kwargs['form_class'] = forms.URLField 12 return super(URLField, self).formfield(**kwargs)