Ticket #8291: 8291.diff

File 8291.diff, 660 bytes (added by evan_schulz, 16 years ago)
  • django/core/management/validation.py

     
    191191                    field_name = field_name[1:]
    192192                if opts.order_with_respect_to and field_name == '_order':
    193193                    continue
     194                if field_name == 'pk':
     195                    continue
    194196                # Skip ordering in the format field1__field2 (FIXME: checking
    195197                # this format would be nice, but it's a little fiddly).
    196198                if '_' in field_name:
Back to Top