Ticket #8556: 74333.patch
File 74333.patch, 626 bytes (added by , 16 years ago) |
---|
-
django/db/models/fields/__init__.py
394 394 395 395 # TODO: Maybe move this into contrib, because it's specialized. 396 396 class CommaSeparatedIntegerField(CharField): 397 pass 397 def formfield(self, **kwargs): 398 defaults = { 399 'form_class': forms.RegexField, 400 'regex': '^[\d,]*$', 401 'max_length': self.max_length, 402 } 403 defaults.update(kwargs) 404 return defaults 398 405 399 406 ansi_date_re = re.compile(r'^\d{4}-\d{1,2}-\d{1,2}$') 400 407