I have this in my model: class Syllabus(models.Model): program = models.ForeignKey(SyllabusProgram) course_number = models.IntegerField()
def __str__(self): return "%s %s" %(self.program, self.course_number) class Meta: ordering = ['program', 'course_number', ] It orders correctly in my view but when I go to the Admin I get this error: OperationalError at /ncate/manager/admin/manager/syllabus/ (1054, "Unknown column 'manager_syllabusprogram.id' in 'order clause'") Request Method: GET Request URL: http://coekate.murraystate.edu/ncate/manager/admin/manager/syllabus/ Exception Type: OperationalError Exception Value: (1054, "Unknown column 'manager_syllabusprogram.id' in 'order clause'") What am I doing wrong? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~----------~----~----~----~------~----~------~--~---