mirror of
				https://github.com/django/django.git
				synced 2025-10-31 09:41:08 +00:00 
			
		
		
		
	Fixed #2101 -- Renamed maxlength argument to max_length for oldforms FormFields and db model Fields.  This is fully backwards compatible at the moment since the legacy maxlength argument is still supported.  Using maxlength will, however, issue a PendingDeprecationWarning when used.
				
					
				
			git-svn-id: http://code.djangoproject.com/svn/django/trunk@5803 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
		| @@ -5,8 +5,8 @@ | ||||
| DATA_TYPES = { | ||||
|     'AutoField':         'integer AUTO_INCREMENT', | ||||
|     'BooleanField':      'bool', | ||||
|     'CharField':         'varchar(%(maxlength)s)', | ||||
|     'CommaSeparatedIntegerField': 'varchar(%(maxlength)s)', | ||||
|     'CharField':         'varchar(%(max_length)s)', | ||||
|     'CommaSeparatedIntegerField': 'varchar(%(max_length)s)', | ||||
|     'DateField':         'date', | ||||
|     'DateTimeField':     'datetime', | ||||
|     'DecimalField':      'numeric(%(max_digits)s, %(decimal_places)s)', | ||||
| @@ -21,7 +21,7 @@ DATA_TYPES = { | ||||
|     'PhoneNumberField':  'varchar(20)', | ||||
|     'PositiveIntegerField': 'integer UNSIGNED', | ||||
|     'PositiveSmallIntegerField': 'smallint UNSIGNED', | ||||
|     'SlugField':         'varchar(%(maxlength)s)', | ||||
|     'SlugField':         'varchar(%(max_length)s)', | ||||
|     'SmallIntegerField': 'smallint', | ||||
|     'TextField':         'longtext', | ||||
|     'TimeField':         'time', | ||||
|   | ||||
		Reference in New Issue
	
	Block a user