Ticket #18413: 18413.diff

File 18413.diff, 789 bytes (added by timo, 3 years ago)
  • docs/ref/models/fields.txt

    diff --git a/docs/ref/models/fields.txt b/docs/ref/models/fields.txt
    index 4797e8b..1d8386a 100644
    a b the field. Note: This method will close the file if it happens to be open when 
    668668The optional ``save`` argument controls whether or not the instance is saved
    669669after the file has been deleted. Defaults to ``True``.
    670670
     671Note that when a model is deleted, the :class:`~django.db.models.FileField`'s
     672:func:`~django.db.models.FileField.delete` method won't be called.  If you need
     673to cleanup orphaned files, you'll need to handle it yourself (for instance,
     674with a custom management command that can be run manually or scheduled to run
     675periodically via e.g. cron).
     676
    671677``FilePathField``
    672678-----------------
    673679
Back to Top