Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#1745 closed defect (fixed)

[patch] Accessing many-to-many relationships without a PK value should throw exceptions

Reported by: lukeplant Owned by: adrian
Component: Metasystem Version: master
Severity: normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:


For background, see:

Basically, if you access m2m fields before the object has a primary key value, you get incorrect results. The attached patch fixes this and throws a helpful exception.

It also includes a fix for a nonsense test that was discovered by the patch.

Attachments (1)

m2m_requires_pk_val.patch (1.3 KB) - added by lukeplant 9 years ago.

Download all attachments as: .zip

Change History (2)

Changed 9 years ago by lukeplant

comment:1 Changed 9 years ago by adrian

  • Resolution set to fixed
  • Status changed from new to closed

(In [2817]) Fixed #1745 -- Accessing many-to-many relationships without a PK value now throws an exception. Thanks, Luke

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