diff options
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, |