diff options
Diffstat (limited to 'ishtar_common')
-rw-r--r-- | ishtar_common/migrations/0214_auto_20210308_1628.py | 25 | ||||
-rw-r--r-- | ishtar_common/models.py | 3 |
2 files changed, 28 insertions, 0 deletions
diff --git a/ishtar_common/migrations/0214_auto_20210308_1628.py b/ishtar_common/migrations/0214_auto_20210308_1628.py new file mode 100644 index 000000000..eb9f01740 --- /dev/null +++ b/ishtar_common/migrations/0214_auto_20210308_1628.py @@ -0,0 +1,25 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.11.27 on 2021-03-08 16:28 +from __future__ import unicode_literals + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('ishtar_common', '0213_auto_20210302_0950'), + ] + + operations = [ + migrations.AddField( + model_name='ishtarsiteprofile', + name='calculate_weight_on_full', + field=models.BooleanField(default=False, verbose_name='Container - calculate weight only when all find has a weight'), + ), + migrations.AlterField( + model_name='customform', + name='user_types', + field=models.ManyToManyField(blank=True, help_text='Deprecated - use profile types', to='ishtar_common.PersonType'), + ), + ] diff --git a/ishtar_common/models.py b/ishtar_common/models.py index 0e5a39c1f..180acd626 100644 --- a/ishtar_common/models.py +++ b/ishtar_common/models.py @@ -748,6 +748,9 @@ class IshtarSiteProfile(models.Model, Cached): "Only manage association of operations, context records " "and finds.") ) + calculate_weight_on_full = models.BooleanField( + _("Container - calculate weight only when all find has a weight"), + default=False) config = models.CharField( _("Alternate configuration"), max_length=200, choices=ALTERNATE_CONFIGS_CHOICES, |