From 1926428a55f6709fc66c302b0a69b1ec04db705c Mon Sep 17 00:00:00 2001 From: Adrian Holovaty Date: Wed, 7 Jun 2006 02:47:53 +0000 Subject: [PATCH] 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 --- django/core/management.py | 1 + 1 file changed, 1 insertion(+) 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: