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


Ignore:
Timestamp:
Aug 8, 2019, 4:27:20 PM (5 years ago)
Author:
Simon Charette

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #30690, comment 1

    initial v1  
    1 By it's nature or dealing with both read and writes the `get_or_create` method '''has''' to be targeting the ''write'' database for reads.
     1By it's nature of dealing with both read and writes the `get_or_create` method '''has''' to be targeting the ''write'' database for reads.
    22
    33[https://github.com/django/django/blob/5b57798513066bb6d5ea54225d0bd030a089c501/django/db/models/query.py#L545-L546 There's a comment in the method definition about it]  and following the `git blame` trace leads to [https://github.com/django/django/commit/4e9a74b81df1c7aaea2f90a3a4911920e134b275 this commit].
Back to Top