From 5e332bb88c0375b53b011367f86485f06139b45f Mon Sep 17 00:00:00 2001 From: vabene1111 Date: Fri, 20 Jan 2023 10:20:03 +0100 Subject: [PATCH] changed plural default --- .../migrations/0187_alter_space_use_plural.py | 18 ++++++++++++++++++ cookbook/models.py | 2 +- 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 cookbook/migrations/0187_alter_space_use_plural.py diff --git a/cookbook/migrations/0187_alter_space_use_plural.py b/cookbook/migrations/0187_alter_space_use_plural.py new file mode 100644 index 00000000..c668f884 --- /dev/null +++ b/cookbook/migrations/0187_alter_space_use_plural.py @@ -0,0 +1,18 @@ +# Generated by Django 4.1.4 on 2023-01-20 09:19 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('cookbook', '0186_automation_order_alter_automation_type'), + ] + + operations = [ + migrations.AlterField( + model_name='space', + name='use_plural', + field=models.BooleanField(default=True), + ), + ] diff --git a/cookbook/models.py b/cookbook/models.py index e488bab9..9ceb09a5 100644 --- a/cookbook/models.py +++ b/cookbook/models.py @@ -260,7 +260,7 @@ class Space(ExportModelOperationsMixin('space'), models.Model): max_recipes = models.IntegerField(default=0) max_file_storage_mb = models.IntegerField(default=0, help_text=_('Maximum file storage for space in MB. 0 for unlimited, -1 to disable file upload.')) max_users = models.IntegerField(default=0) - use_plural = models.BooleanField(default=False) + use_plural = models.BooleanField(default=True) allow_sharing = models.BooleanField(default=True) demo = models.BooleanField(default=False) food_inherit = models.ManyToManyField(FoodInheritField, blank=True)