Sunday, March 14, 2010

Re: a bug (i think) with dynamic inlines and ManyToMany relationships

On Sat, Mar 13, 2010 at 8:33 PM, Simon <simonjwiles@gmail.com> wrote:
> Hi all,
>
> I've found what I think is a bug in django 1.2 beta 1 (SVN-12773).
>
> The dynamic inlines works great with foreign key relationships, but
> the "Add another xxx" link doesn't appear with ManyToMany
> relationships.  It seems to be because of the '+' character in the
> `inline_admin_formset.formset.prefix`, causing the regex in
> `inlines.js` to fail.  By over-riding the `tabular.html` template and
> hard-coding the prefix i can partly get the functionality, but it's
> not perfect.
>
> Before I look into it more (I'm not very familiar with the codebase)
> and file a bug report, I wanted to check here if it's a known issue.
> If anyone has any input I'll be very grateful to hear it.

If it's a known issue, it's in Trac. Given that this is a bug in a new
feature to Django, if it is known, it is almost certainly on the todo
list for the release:

http://code.djangoproject.com/query?status=new&status=assigned&status=reopened&group=component&milestone=1.2&order=priority

In this case, I can't see anything obvious that would cover the
problem you describe, so a new report (including a specific set of
example models and a sample fix) would be very helpful.

Yours,
Russ Magee %-)

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

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate