Преглед на файлове

upgrade to Wagtail 2.10

Cynthia Kiser преди 4 години
родител
ревизия
5d255cd535
променени са 3 файла, в които са добавени 21 реда и са изтрити 2 реда
  1. 18 0
      bakerydemo/base/migrations/0005_formfield_clean_name.py
  2. 1 0
      bakerydemo/settings/base.py
  3. 2 2
      requirements/base.txt

+ 18 - 0
bakerydemo/base/migrations/0005_formfield_clean_name.py

@@ -0,0 +1,18 @@
+# Generated by Django 3.1 on 2020-08-15 21:28
+
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+
+    dependencies = [
+        ('base', '0004_auto_20180522_1856'),
+    ]
+
+    operations = [
+        migrations.AddField(
+            model_name='formfield',
+            name='clean_name',
+            field=models.CharField(blank=True, default='', help_text='Safe name of the form field, the label converted to ascii_snake_case', max_length=255, verbose_name='name'),
+        ),
+    ]

+ 1 - 0
bakerydemo/settings/base.py

@@ -37,6 +37,7 @@ INSTALLED_APPS = [
     'bakerydemo.locations',
     'bakerydemo.search',
 
+    'wagtail.contrib.legacy.richtext',
     'wagtail.contrib.search_promotions',
     'wagtail.contrib.forms',
     'wagtail.contrib.redirects',

+ 2 - 2
requirements/base.txt

@@ -1,5 +1,5 @@
-Django>=3.0,<3.1
+Django>=3.1,<3.2
 django-dotenv==1.4.1
-wagtail>=2.9,<2.10
+wagtail>=2.10,<2.11
 wagtailfontawesome>=1.1.3,<1.2
 Pillow>=6.2.0,<6.3