On 8/15/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> OperationalError at /admin/ghsite/inventory/
>   (1054, "Unknown column 'inventory.keyfgallid_id' in 'field list'")

...snip...

> How can I fix this without renaming all of the keys?

Assuming that 'keyfgallid' is the name of the actual column in the
database, use the 'db_column' argument[1] in that field to specify it,
like so:

keyfgallid = models.ForeignKey(Gallery, db_column='keyfgallid')

[1] http://www.djangoproject.com/documentation/model_api/#db-column

-- 
"May the forces of evil become confused on the way to your house."
  -- George Carlin

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to