home / django_tickets / tickets

tickets: 8334

This data as json

id created changetime last_pulled_from_trac stage status component type severity version resolution summary description owner reporter keywords easy has_patch needs_better_patch needs_tests needs_docs ui_ux
8334 2008-08-15 06:38:37 2011-04-26 22:33:16 2022-03-06 03:41:58.666114 Accepted closed Database layer (models, ORM) New feature Normal dev duplicate Allow add/create on m2m intermediate tables if all the non-FK fields have defaults or are NULLable Add/create is currently disabled on m2m relations that use an intermediate table. This is due to the fact that values to populate the intermediate table cannot be provided using the add/create calls. However, 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 [http://groups.google.com/group/django-users/browse_thread/thread/a40f1005760f80b5 this thread in the ML]) nobody pihentagy manytomany through default add create 0 0 0 0 0 0
Powered by Datasette · Queries took 1.353ms