Ticket #8440: auto_id.diff
File auto_id.diff, 2.1 KB (added by , 16 years ago) |
---|
-
forms/formsets.py
28 28 """ 29 29 A collection of instances of the same Form class. 30 30 """ 31 def __init__(self, data=None, files=None, auto_id='id _%s', prefix=None,31 def __init__(self, data=None, files=None, auto_id='id-%s', prefix=None, 32 32 initial=None, error_class=ErrorList): 33 33 self.is_bound = data is not None or files is not None 34 34 self.prefix = prefix or 'form' -
forms/models.py
184 184 return new_class 185 185 186 186 class BaseModelForm(BaseForm): 187 def __init__(self, data=None, files=None, auto_id='id _%s', prefix=None,187 def __init__(self, data=None, files=None, auto_id='id-%s', prefix=None, 188 188 initial=None, error_class=ErrorList, label_suffix=':', 189 189 empty_permitted=False, instance=None): 190 190 opts = self._meta … … 240 240 """ 241 241 model = None 242 242 243 def __init__(self, data=None, files=None, auto_id='id _%s', prefix=None,243 def __init__(self, data=None, files=None, auto_id='id-%s', prefix=None, 244 244 queryset=None, **kwargs): 245 245 self.queryset = queryset 246 246 defaults = {'data': data, 'files': files, 'auto_id': auto_id, 'prefix': prefix} -
forms/forms.py
68 68 # class is different than Form. See the comments by the Form class for more 69 69 # information. Any improvements to the form API should be made to *this* 70 70 # class, not to the Form class. 71 def __init__(self, data=None, files=None, auto_id='id _%s', prefix=None,71 def __init__(self, data=None, files=None, auto_id='id-%s', prefix=None, 72 72 initial=None, error_class=ErrorList, label_suffix=':', 73 73 empty_permitted=False): 74 74 self.is_bound = data is not None or files is not None