Changes between Initial Version and Version 1 of Ticket #18285, comment 1
- Timestamp:
- May 7, 2012, 4:11:03 PM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #18285, comment 1
initial v1 1 I quickly checked the related fields for .create() support and both reverse foreign key and m2m field has support for create. 1 I quickly checked the related fields for .create() support and both reverse foreign key and m2m field has support for create. Neither support bulk_create(). 2 2 3 I think my currentapproach would be to add bulk_create() support for reverse foreign key (as it is somewhat easy to do so), and just raise !NotImplemented from m2m.bulk_create(). Fixing the m2m bulk_create would require support for returning the primary key value from bulk_insert to create the links, and that support is not currently available (and is not going to be available in the foreseeable future).3 A possible approach would be to add bulk_create() support for reverse foreign key (as it is somewhat easy to do so), and just raise !NotImplemented from m2m.bulk_create(). Fixing the m2m bulk_create would require support for returning the primary key value from bulk_insert to create the links, and that support is not currently available (and is not going to be available in the foreseeable future). 4 4 5 5 In addition generic relations need a check for this, too.