Changes between Initial Version and Version 1 of Ticket #18285, comment 1


Ignore:
Timestamp:
05/07/12 16:11:03 (3 years ago)
Author:
akaariai
Comment:

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.
     1I quickly checked the related fields for .create() support and both reverse foreign key and m2m field has support for create. Neither support bulk_create().
    22
    3 I think my current 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).
     3A 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).
    44
    55In addition generic relations need a check for this, too.
Back to Top