#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
Note:
See TracTickets
for help on using tickets.
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.