Kaydet (Commit) ecbabc21 authored tarafından Marc Tamlyn's avatar Marc Tamlyn

Revert "Fixed regression from a2dd618e."

This reverts commit 5a2556af.
üst 2f43229c
......@@ -17,8 +17,7 @@ class DatabaseValidation(BaseDatabaseValidation):
if getattr(field, 'rel', None) is None:
field_type = field.db_type(connection)
if (field_type is not None # Not all fields have a db_type (whyever...)
and field_type.startswith('varchar') # Look for CharFields...
if (field_type.startswith('varchar') # Look for CharFields...
and field.unique # ... that are unique
and (field.max_length is None or int(field.max_length) > 255)):
errors.append(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment