Ticket #13613: db_fields.diff

File db_fields.diff, 695 bytes (added by amadison, 14 years ago)
  • C:/django_versions/Django-1.2.1/django/db/models/fields/

    old new  
    11041104        kwargs['max_length'] = kwargs.get('max_length', 200)
    11051105        CharField.__init__(self, verbose_name, name, **kwargs)
    11061106        self.validators.append(validators.URLValidator(verify_exists=verify_exists))
    1107 
     1107   
     1108    def formfield(self, **kwargs):
     1109        defaults = {'form_class': forms.URLField}
     1110        defaults.update(kwargs)
     1111        return super(URLField, self).formfield(**defaults)
     1112       
    11081113class XMLField(TextField):
    11091114    description = _("XML text")
    11101115
Back to Top