diff --git a/django/core/management.py b/django/core/management.py index d3649b4d48..c40e3a5eb2 100644 --- a/django/core/management.py +++ b/django/core/management.py @@ -923,6 +923,7 @@ def get_validation_errors(outfile, app=None): field_name = field_name[1:] if opts.order_with_respect_to and field_name == '_order': continue + if '.' in field_name: continue # Skip ordering in the format 'table.field'. try: opts.get_field(field_name, many_to_many=False) except models.FieldDoesNotExist: