-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrade Python from 3.6=>3.12 and Django from 1.11=>3.2.5 (#200)
This PR updates the Python and Django version, and most other dependencies. We only go to 3.2.5 for Django instead of 5.0.4 because the django-bootstrap-pagination requirement will not work with Django > 3.2. It would be pretty simple to fork the bootstrap pagination project and make the changes necessary to get it working with new Django, but we might want to also update the Boostrap version, so I'll leave all that to another day. Nearly all the templates had to be touched, but the only substantive change in them is changing {% load staticfiles %} to {% load static %}. The rest of it is just formatting changes from djhtml.
- Loading branch information
Showing
33 changed files
with
2,425 additions
and
2,213 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM python:3.6 | ||
FROM python:3.12 | ||
LABEL maintainer "DataMade <[email protected]>" | ||
|
||
RUN apt-get update && \ | ||
|
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,68 @@ | ||
# Generated by Django 3.2.25 on 2024-04-22 14:50 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("camp_fin", "0084_auto_20240418_1048"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name="campaign", | ||
name="biannual", | ||
field=models.BooleanField(null=True), | ||
), | ||
migrations.AlterField( | ||
model_name="campaign", | ||
name="initial_balance_from_self", | ||
field=models.BooleanField(null=True), | ||
), | ||
migrations.AlterField( | ||
model_name="campaign", | ||
name="initial_debt_from_self", | ||
field=models.BooleanField(null=True), | ||
), | ||
migrations.AlterField( | ||
model_name="filing", | ||
name="final", | ||
field=models.BooleanField(null=True), | ||
), | ||
migrations.AlterField( | ||
model_name="filing", | ||
name="no_activity", | ||
field=models.BooleanField(null=True), | ||
), | ||
migrations.AlterField( | ||
model_name="lobbyistfilingperiod", | ||
name="allow_statement_of_no_activity", | ||
field=models.BooleanField(null=True), | ||
), | ||
migrations.AlterField( | ||
model_name="lobbyistregistration", | ||
name="is_registered", | ||
field=models.BooleanField(null=True), | ||
), | ||
migrations.AlterField( | ||
model_name="pac", | ||
name="initial_balance_from_self", | ||
field=models.BooleanField(null=True), | ||
), | ||
migrations.AlterField( | ||
model_name="pac", | ||
name="initial_debt_from_self", | ||
field=models.BooleanField(null=True), | ||
), | ||
migrations.AlterField( | ||
model_name="transaction", | ||
name="expenditure_for_certified_candidate", | ||
field=models.BooleanField(null=True), | ||
), | ||
migrations.AlterField( | ||
model_name="transaction", | ||
name="redact", | ||
field=models.BooleanField(default=False, null=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
Oops, something went wrong.