mirror of
https://github.com/Hopiu/django-model-utils.git
synced 2026-03-16 20:00:23 +00:00
Add default manager as all_objects for SoftDeletableModel (#326)
* Add default manager as all_objects for SoftDeletableModel * Document changes on changelog
This commit is contained in:
parent
764b7ea78d
commit
b739f6fe87
2 changed files with 4 additions and 0 deletions
|
|
@ -14,6 +14,9 @@ master (unreleased)
|
|||
* Update InheritanceIterable to inherit from
|
||||
ModelIterable instead of BaseIterable, fixes GH-277.
|
||||
|
||||
* Add all_objects Manager for 'SoftDeletableModel' to include soft
|
||||
deleted objects on queries as per issue GH-255
|
||||
|
||||
3.1.1 (2017.12.17)
|
||||
------------------
|
||||
|
||||
|
|
|
|||
|
|
@ -123,6 +123,7 @@ class SoftDeletableModel(models.Model):
|
|||
abstract = True
|
||||
|
||||
objects = SoftDeletableManager()
|
||||
all_objects = models.Manager()
|
||||
|
||||
def delete(self, using=None, soft=True, *args, **kwargs):
|
||||
"""
|
||||
|
|
|
|||
Loading…
Reference in a new issue