Ticket #12313: 12313.diff

File 12313.diff, 795 bytes (added by Tim Graham, 8 years ago)
  • docs/topics/db/models.txt

    758758**kwargs`` in your method definitions, you are guaranteed that your
    759759code will automatically support those arguments when they are added.
     761.. admonition:: Overriding Delete
     763    Note that the :meth:`~Model.delete()` method for an object is not
     764    necessarily called when :ref:`deleting objects in bulk using a
     765    QuerySet<topics-db-queries-delete>`. To ensure customized delete logic
     766    gets executed, you can use :data:`~django.db.models.signals.pre_save`
     767    and/or :data:`~django.db.models.signals.post_save` signals.
    761769Executing custom SQL
Back to Top