My model includes a class called "Topic", and there exists a many-to-
many relationship between Topics. This relationship between topics
also includes a field named "source" that describes the nature of the
relationship. Thus, I declare a model named TopicRelationship (see
below) rather than using "models.ManyToManyField".

I'd like to allow users of the Django admin interface to edit the
relationships between topics from within any page about a Topic.
Typically this would be done using the "edit_inline" named argument in
the call to "models.ForeignKey". However, seemingly because my
"TopicRelationship" models has two ForeignKey's, both of which point
to "Topic", I get an error message when I set the edit_line named
argument (see below). The particular error message is "TypeError" and
"'bool' object is not callable".

Is there some workaround, which will allows users of the admin
interface to edit a Topic's relationships without leaving the admin
page for a particular topic?

Thank you,
John

---

class TopicRelationship(models.Model):
    fromTopic = models.ForeignKey(Topic, related_name="outbound",
core=True,\
    # If I comment the line below in, I get an error message
 
#
edit_inline=models.TABULAR,\
    )
    toTopic = models.ForeignKey(Topic, related_name="inbound",
core=True)
    source = models.ForeignKey(Source, core=True)

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" 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-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to