Opened 13 years ago

Closed 13 years ago

#2003 closed defect (invalid)

ManyToManyField(SomeModel, blank=True, null=True) does not work

Reported by: anonymous Owned by: Adrian Holovaty
Component: contrib.admin Version:
Severity: normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


I have a ManyToManyField that I want to be able to leave blank but if I do that I get this error:

"instance needs to have a primary key value before a many-to-many relationship can be used"

I only get that error in the AdminCP though.

Change History (1)

comment:1 Changed 13 years ago by anonymous

Resolution: invalid
Status: newclosed

Sorry, the error was caused by a problem in my "pre save" trigger. Ignore

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