﻿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
3798	order_with_respect_to fails unless column manually added	jon.i.austin@…	Jacob	"hi,

I may be missing something, but when following the documentation for order_with_respect_to and using it in an otherwise perfectly working Polls site (tutorial), I get this exception when view admin Polls or Choice sections:[[BR]]

Exception Value:  	(1054, ""Unknown column 'polls_choice._order' in 'order clause'"")[[BR]]


tried syncdb, restarting server -- fixed it by manually adding varchar _order column to table, but is this how its supposed to work, and if so should it be mentioned in the docs, as its outside what i'd consider the normal elegant flow of working in django?

thanks! [[BR]]

jon

code from polls app directory - models.py
 
{{{
25 class Choice(models.Model):
 26     poll = models.ForeignKey(Poll, edit_inline=models.TABULAR, num_in_admin=3)
 27     choice = models.CharField(maxlength=200, core=True)
 28     votes = models.IntegerField(core=True)
 29
 30     class Meta:
 31         order_with_respect_to ='poll'
 32
 33     class Admin:
 34         pass
 35
 36     def __str__(self):
 37         return self.choice


}}}
"		closed	Documentation	dev		duplicate	order_with_respect_to		Unreviewed	0	0	0	0	0	0
