1. 17 Eki, 2018 3 kayıt (commit)
    • Tom Dyson's avatar
      Removed obsolete "ugly URL" reference. · 6752c275
      Tom Dyson yazdı
      6752c275
    • Tim Graham's avatar
    • Florian Apolloner's avatar
      Fixed #21171 -- Avoided starting a transaction when a single (or atomic queries) are executed. · bc7dd849
      Florian Apolloner yazdı
      Checked the following locations:
      
       * Model.save(): If there are parents involved, take the safe way and use
         transactions since this should be an all or nothing operation.
      
         If the model has no parents:
      
          * Signals are executed before and after the previous existing
            transaction -- they were never been part of the transaction.
      
          * if `force_insert` is set then only one query is executed -> atomic
            by definition and no transaction needed.
      
          * same applies to `force_update`.
      
          * If a primary key is set and no `force_*` is set Django will try an
            UPDATE and if that returns zero rows it tries an INSERT. The first
            case is completly save (single query). In the second case a
            transaction should not produce different results since the update
            query is basically a no-op then (might miss something though).
      
       * QuerySet.update(): no signals issued, single query -> no transaction
         needed.
      
       * Model/Collector.delete(): This one is fun due to the fact that is
         does many things at once.
      
         Most importantly though: It does send signals as part of the
         transaction, so for maximum backwards compatibility we need to be
         conservative.
      
         To ensure maximum compatibility the transaction here is removed only
         if the following holds true:
      
           * A single instance is being deleted.
           * There are no signal handlers attached to that instance.
           * There are no deletions/updates to cascade.
           * There are no parents which also need deletion.
      bc7dd849
  2. 16 Eki, 2018 2 kayıt (commit)
  3. 15 Eki, 2018 4 kayıt (commit)
  4. 14 Eki, 2018 2 kayıt (commit)
  5. 13 Eki, 2018 1 kayıt (commit)
  6. 12 Eki, 2018 4 kayıt (commit)
  7. 11 Eki, 2018 3 kayıt (commit)
  8. 10 Eki, 2018 4 kayıt (commit)
  9. 09 Eki, 2018 3 kayıt (commit)
  10. 08 Eki, 2018 2 kayıt (commit)
  11. 05 Eki, 2018 1 kayıt (commit)
  12. 04 Eki, 2018 7 kayıt (commit)
  13. 03 Eki, 2018 4 kayıt (commit)