Ticket #4084: models_usstatefield.patch
File models_usstatefield.patch, 708 bytes (added by , 18 years ago) |
---|
-
__init__.py
old new 866 866 class USStateField(Field): 867 867 def get_manipulator_field_objs(self): 868 868 return [oldforms.USStateField] 869 870 def formfield(self, **kwargs): 871 from django.contrib.localflavor.usa.forms import USStateSelect 872 defaults = {'required': not self.blank, 'label': capfirst(self.verbose_name), 'help_text': self.help_text} 873 defaults.update(kwargs) 874 return USStateSelect(**defaults) 869 875 870 876 class XMLField(TextField): 871 877 def __init__(self, verbose_name=None, name=None, schema_path=None, **kwargs):