diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2021-02-22 17:45:05 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2021-02-28 12:15:24 +0100 |
commit | 8b3eae6c7d60a54bc61e29a6ea7539b8f809d26f (patch) | |
tree | 21d4c294c6f63e3d85ba8673d83e670adc62df30 /ishtar_common/models.py | |
parent | 5c9701f05ddaba63d957f1973652be545a57bea0 (diff) | |
download | Ishtar-8b3eae6c7d60a54bc61e29a6ea7539b8f809d26f.tar.bz2 Ishtar-8b3eae6c7d60a54bc61e29a6ea7539b8f809d26f.zip |
Option to auto-clean associated documents
Diffstat (limited to 'ishtar_common/models.py')
-rw-r--r-- | ishtar_common/models.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/ishtar_common/models.py b/ishtar_common/models.py index 0a2f4bb6f..55fb1566c 100644 --- a/ishtar_common/models.py +++ b/ishtar_common/models.py @@ -60,7 +60,7 @@ from django.core.files.base import ContentFile from django.core.files.uploadedfile import SimpleUploadedFile from django.core.urlresolvers import reverse from django.db.models import Q, Max, Count -from django.db.models.signals import post_save, post_delete +from django.db.models.signals import post_save, post_delete, m2m_changed from django.db.utils import DatabaseError from django.template import Context, Template from django.template.defaultfilters import slugify @@ -740,6 +740,13 @@ class IshtarSiteProfile(models.Model, Cached): delete_image_zip_on_archive = models.BooleanField( _("Import - Delete image/document zip on archive"), default=False ) + clean_redundant_document_association = models.BooleanField( + _("Document - Remove redundant association"), default=False, + help_text=_("For instance, remove operation association of a " + "document also associated to a find of this operation. " + "Only manage association of operations, context records " + "and finds.") + ) config = models.CharField( _("Alternate configuration"), max_length=200, choices=ALTERNATE_CONFIGS_CHOICES, |