#7800: GenericRelation doesn't respect changes from the default 
GenericForeignKey
field names in the contenttypes framework
---------------------------+------------------------------------------------
 Reporter:  devinj         |       Owner:  nobody    
   Status:  new            |   Milestone:            
Component:  Uncategorized  |     Version:  SVN       
 Keywords:                 |       Stage:  Unreviewed
Has_patch:  0              |  
---------------------------+------------------------------------------------
 I have a GenericForeignKey with custom field names (
 http://pastebin.ca/1073849 ). I get an error when I use one of the
 GenericRelations, because it doesn't try to use this custom field name.
 FieldError: Cannot resolve keyword 'content_type' into field. Choices are:
 author, channel, content, creation_time, id, object_id, parent_type, post,
 replies, title, update_time

 Instead, it tries to use the default names. I think that's these lines in
 this paste:  http://pastebin.ca/1074704 . It should be noted that at one
 point I did use the default names, but never really tested it, and ended
 up changing their names and deleting the db, recreating the db using
 syncdb. I am not aware of any other steps I should have taken.

 I've tried asking around (in #django on irc.freenode.net) to see if I've
 missed anything, but nobody else knows, so this is my best guess for an
 error I can't otherwise explain.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/7800>
Django Code <http://code.djangoproject.com/>
The web framework for perfectionists with deadlines
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to