﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
640	order_with_respect_to option fails	Bless	nobody	"Example model code:
{{{
from django.core import meta

class Country(meta.Model):
    domain = meta.CharField(maxlength=2, unique=True)
    name = meta.CharField(maxlength=50, unique=True)
    
    class META:
        module_name = verbose_name_plural = ""countries""
        ordering = ['domain']
        admin = meta.Admin()
    
    def __repr__(self):
        return self.domain

class State(meta.Model):
    name = meta.CharField(maxlength=100)
    country = meta.ForeignKey(Country)
    
    class META:
        order_with_respect_to = 'country'
        #ordering = ['name']
        admin = meta.Admin()
    
    def __repr__(self):
        return self.name
}}}

----

In Site administration, if fails when i click in States table and Change (States) too
but it fails when i add 'order_with_respect_to' option only
{{{
There's been an error:

Traceback (most recent call last):

  File ""/usr/lib/python2.4/site-packages/django/core/handlers/base.py"", line 77, in get_response
    raise e

FieldDoesNotExist: name=_order
}}}

----
rev. 917 - Python 2.4.2 - sqlite-3.2.1 - pysqlite-2.0.4"	defect	closed	Documentation	dev	major	fixed	order_with_respect_to ordering mysql bug	starplant@… gary.wilson@… Flavio Curella	Ready for checkin	1	0	0	0	1	0
