Ticket #8291: 8291.diff
File 8291.diff, 660 bytes (added by , 16 years ago) |
---|
-
django/core/management/validation.py
191 191 field_name = field_name[1:] 192 192 if opts.order_with_respect_to and field_name == '_order': 193 193 continue 194 if field_name == 'pk': 195 continue 194 196 # Skip ordering in the format field1__field2 (FIXME: checking 195 197 # this format would be nice, but it's a little fiddly). 196 198 if '_' in field_name: