Opened 18 years ago

Last modified 15 years ago

#8334 closed

Allow add/create if all the non-FK fields have defaults or are NULLable — at Initial Version

Reported by: Gergely Kontra Owned by: nobody
Component: Database layer (models, ORM) Version: dev
Severity: Normal Keywords: manytomany through default add create
Cc: ales.zoulek@… Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

What if the intermediate model has reasonable default values, so
one can assign model A to B without extra info?

In my case, I just want to syncronize 2 databases, and I would like to
mark relationships, that are already synced. So, in my case, the
intermediate table contains a boolean, which defaults to false, and
will become true, when the data is synced.

In this case adding relations without explicitly creating the intermediate table would be great.

(based on ​this thread in the ML)

Change History (0)

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