Thanks. The patch with 1576 worked fine. I understand about not wanting to patch current admin--makes perfect sense.
Thanks also to Marcelo for identifying the problem and fix. On Apr 28, 7:46 pm, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Sat, 2007-04-28 at 17:49 -0400, Hancock, David (DHANCOCK) wrote: > > Django 0.96, OS X 10.4, MySQL 5.1, Python 2.4.2. > > > I'm using the automatic admin, and when I click on a column heading, I > > get a traceback: > > > OperationalError at /admin/trips/leg/ > > (1054, "Unknown column 'trips_trip.-start_date' in 'order > > clause'") > > > The leg class has a foreign key to the trip class, and the trip class > > has order_by defined as '-start_date' so that newer trips are at the > > top. > > It's a known bug. Coincidentally, it was fixed on the newforms-admin > branch about 12 hours ago. See ticket #1576 for details. > > Because newforms-admin is replacing the current admin very soon and to > ease the burden on merging between the two branches, we are not applying > any fixes that aren't security related to the current admin code at this > time. > > So you can either avoid doing a search with descending order on the > related model (Trip), or apply the patch from #1576, or the cleaned up > version in changeset [5092] to your local copy. In case it's not clear > from the notes in #1576, [5092] was a commit to the current trunk, so it > will apply directly. It was reverted in [5097], because I realised I had > accidentally patched admin. > > Regards, > Malcolm --~--~---------~--~----~------------~-------~--~----~ 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?hl=en -~----------~----~----~----~------~----~------~--~---