Opened 9 years ago

Closed 9 years ago

Last modified 7 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: UI/UX:


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 Changed 9 years ago by Russell Keith-Magee

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 Changed 7 years ago by Jacob

milestone: 1.2

Milestone 1.2 deleted

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