Opened 15 years ago

Closed 15 years ago

Last modified 13 years ago

#11922 closed (invalid)

Label for ManyToManyField

Reported by: DigitalGod Owned by: nobody
Component: Forms Version: 1.1
Severity: Keywords: ManyToManyField, label
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

While using ManyToManyField with through option i can't render the form.

Error is

Caught an exception while rendering: 'NoneType' object has no attribute 'label'

Here is the code for member model

...
group = models.ManyToManyField(Group, blank=True, through='Membership')
...

if i don't use through option - the form is rendered successfully

Change History (2)

comment:1 by Russell Keith-Magee, 15 years ago

Resolution: invalid
Status: newclosed

There isn't anywhere near enough detail for this to be a valid bug report - for instance what is "the form"?

It's also possible that this is a "how do I" query - in which case, your first stop should be asking on django-users.

comment:2 by Jacob, 13 years ago

milestone: 1.2

Milestone 1.2 deleted

Note: See TracTickets for help on using tickets.
Back to Top