I'm back, after a long hiatus. In a blog app, I'm created a ManyToMany
relationship between "BlogEntry"s and "Category"s (the actual field
was on the BlogEntry), and I want the admin to be able to edit a
Category inline from the BlogEntry add/edit page. There wasn't any
specific information on this in the docs, so I went ahead and just
added the CategoryInline to the EntryAdmin's inlines setting.

However, I recieved "Exception at /admin/blog111/blogentry/add/:
<class 'blog111.models.Category'> has no ForeignKey to <class
'blog111.models.BlogEntry'>" when I tried to navigate to the admin's
"Add" page. I posted the relevant parts of admin.py and models.py, as
well as the full traceback, on Dpaste (http://dpaste.com/100167/), so
can anyone explain how I can get the admin to do this?

Regards,
Leaf
--~--~---------~--~----~------------~-------~--~----~
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 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to