-
Notifications
You must be signed in to change notification settings - Fork 235
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update to Django 3.2 and update Python packages
I can't currently update to Django 4.0 because django-formtools 2.4 includes a bug that breaks our usage case of conditional form steps on the Outreachy initial application: #537 jazzband/django-formtools#220 I also ran into an odd issue with the home/test_eligibility.py unit test. The work-around is documented in the code, although Jamey Sharp and I still have no clue as to what the root cause is. All the other unit tests use the home/scenarios.py code, and none of them seem to have issues. The unit tests are now more verbose, showing the permission errors that are uncaught, and 404 not found messages. In those cases, we're actually trying to test that errors are thrown when pages aren't accessed properly. I could add more code to catch those permission errors, but I'm too tired after wrestling with updates. That's future work. At least we're running a Django version that is receiving security updates now! Django 3.2 is marked as being a long-term support release, until early 2024: https://www.djangoproject.com/download/ However, it will be really important to upgrade to 4.2 in mid-2023, so that we can be on the next LTS release before 3.2 is deprecated in early 2024.
- Loading branch information
Sage Sharp
committed
Dec 29, 2022
1 parent
0b8b54a
commit 1af2d20
Showing
8 changed files
with
314 additions
and
294 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Generated by Django 3.2.16 on 2022-12-27 01:02 | ||
|
||
from django.db import migrations | ||
import wagtail.blocks | ||
import wagtail.contrib.table_block.blocks | ||
import wagtail.fields | ||
import wagtail.images.blocks | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('home', '0002_auto_20221226_2301'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='homepage', | ||
name='body', | ||
field=wagtail.fields.StreamField([('heading', wagtail.blocks.CharBlock(template='home/blocks/heading.html')), ('paragraph', wagtail.blocks.RichTextBlock()), ('image', wagtail.images.blocks.ImageChooserBlock()), ('logo', wagtail.images.blocks.ImageChooserBlock(template='home/blocks/logo.html')), ('date', wagtail.blocks.DateBlock()), ('table', wagtail.contrib.table_block.blocks.TableBlock(template='home/blocks/table.html')), ('quote', wagtail.blocks.RichTextBlock(template='home/blocks/quote.html'))], use_json_field=True), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters