1. 26 Ock, 2014 1 kayıt (commit)
  2. 27 Kas, 2013 2 kayıt (commit)
    • Anssi Kääriäinen's avatar
      PEP-8 cleanup · 01e8ac47
      Anssi Kääriäinen yazdı
      Refs #21169
      01e8ac47
    • Loic Bistuer's avatar
      Fixed #21169 -- Reworked RelatedManager methods use default filtering · 17c3997f
      Loic Bistuer yazdı
      The `remove()` and `clear()` methods of the related managers created by
      `ForeignKey`, `GenericForeignKey`, and `ManyToManyField` suffered from a
      number of issues. Some operations ran multiple data modifying queries without
      wrapping them in a transaction, and some operations didn't respect default
      filtering when it was present (i.e. when the default manager on the related
      model implemented a custom `get_queryset()`).
      
      Fixing the issues introduced some backward incompatible changes:
      
      - The implementation of `remove()` for `ForeignKey` related managers changed
        from a series of `Model.save()` calls to a single `QuerySet.update()` call.
        The change means that `pre_save` and `post_save` signals aren't called anymore.
      
      - The `remove()` and `clear()` methods for `GenericForeignKey` related
        managers now perform bulk delete so `Model.delete()` isn't called anymore.
      
      - The `remove()` and `clear()` methods for `ManyToManyField` related
        managers perform nested queries when filtering is involved, which may
        or may not be an issue depending on the database and the data itself.
      
      Refs. #3871, #21174.
      
      Thanks Anssi Kääriäinen and Tim Graham for the reviews.
      17c3997f
  3. 03 Kas, 2013 1 kayıt (commit)
  4. 25 Eyl, 2013 1 kayıt (commit)
  5. 15 Agu, 2013 1 kayıt (commit)
  6. 26 Tem, 2013 1 kayıt (commit)
    • Loic Bistuer's avatar
      Fixed #20625 -- Chainable Manager/QuerySet methods. · 31fadc12
      Loic Bistuer yazdı
      Additionally this patch solves the orthogonal problem that specialized
      `QuerySet` like `ValuesQuerySet` didn't inherit from the current `QuerySet`
      type. This wasn't an issue until now because we didn't officially support
      custom `QuerySet` but it became necessary with the introduction of this new
      feature.
      
      Thanks aaugustin, akaariai, carljm, charettes, mjtamlyn, shaib and timgraham
      for the reviews.
      31fadc12
  7. 08 Mar, 2013 1 kayıt (commit)
  8. 26 Şub, 2013 1 kayıt (commit)
  9. 12 Agu, 2012 1 kayıt (commit)
    • Aymeric Augustin's avatar
      [py3] Refactored __unicode__ to __str__. · d4a0b278
      Aymeric Augustin yazdı
      * Renamed the __unicode__ methods
      * Applied the python_2_unicode_compatible decorator
      * Removed the StrAndUnicode mix-in that is superseded by
        python_2_unicode_compatible
      * Kept the __unicode__ methods in classes that specifically
        test it under Python 2
      d4a0b278
  10. 07 Haz, 2012 1 kayıt (commit)
  11. 12 Eyl, 2010 1 kayıt (commit)
  12. 05 Agu, 2007 1 kayıt (commit)
  13. 04 Tem, 2007 1 kayıt (commit)
  14. 27 Agu, 2006 1 kayıt (commit)
  15. 04 Haz, 2006 1 kayıt (commit)
  16. 31 May, 2006 1 kayıt (commit)
  17. 02 May, 2006 1 kayıt (commit)