Revert "Fixed regression from a2dd618e3b4a7472fab852da450ca5eef92a922f."
This reverts commit 5a2556afb9
.
This commit is contained in:
parent
2f43229c2f
commit
ecbabc216d
|
@ -17,8 +17,7 @@ class DatabaseValidation(BaseDatabaseValidation):
|
||||||
if getattr(field, 'rel', None) is None:
|
if getattr(field, 'rel', None) is None:
|
||||||
field_type = field.db_type(connection)
|
field_type = field.db_type(connection)
|
||||||
|
|
||||||
if (field_type is not None # Not all fields have a db_type (whyever...)
|
if (field_type.startswith('varchar') # Look for CharFields...
|
||||||
and field_type.startswith('varchar') # Look for CharFields...
|
|
||||||
and field.unique # ... that are unique
|
and field.unique # ... that are unique
|
||||||
and (field.max_length is None or int(field.max_length) > 255)):
|
and (field.max_length is None or int(field.max_length) > 255)):
|
||||||
errors.append(
|
errors.append(
|
||||||
|
|
Loading…
Reference in New Issue