It's a known bug and they're not fixing it in old-forms.  New-forms
will have a complete re-write of in-line editing.
There is a patch for old-form on the bug page, but it doesn't want to
work for me.

http://code.djangoproject.com/ticket/1939

On Mar 26, 6:40 pm, ocamljohn <[EMAIL PROTECTED]> wrote:
> 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 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to