Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed #2098 -- Loosened validation for model 'ordering' parameter by …

…allowing periods. Thanks, Alex Dedul

git-svn-id: http://code.djangoproject.com/svn/django/trunk@3095 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 1926428a55f6709fc66c302b0a69b1ec04db705c 1 parent f3f002b
@adrianholovaty adrianholovaty authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  django/core/management.py
View
1  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:
Please sign in to comment.
Something went wrong with that request. Please try again.