Changes between Version 1 and Version 2 of Ticket #5331, comment 4


Ignore:
Timestamp:
Feb 15, 2011, 11:32:24 AM (13 years ago)
Author:
Adam Alton

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #5331, comment 4

    v1 v2  
    55#django/db/models/fields/__init__.py
    66
    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)
     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)
Back to Top