-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #154 from opencivicdata/django42
fix: django.contrib.postgres.fields.JSONField causes an error in Django 4.2 (fields.E904) https://docs.djangoproject.com/en/4.2/ref/checks/
- Loading branch information
Showing
12 changed files
with
157 additions
and
21 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
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,38 @@ | ||
# Generated by Django 3.2 on 2024-11-11 14:50 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('core', '0008_auto_20221215_1132'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='jurisdiction', | ||
name='extras', | ||
field=models.JSONField(blank=True, default=dict, help_text='A key-value store for storing arbitrary information not covered elsewhere.'), | ||
), | ||
migrations.AlterField( | ||
model_name='membership', | ||
name='extras', | ||
field=models.JSONField(blank=True, default=dict, help_text='A key-value store for storing arbitrary information not covered elsewhere.'), | ||
), | ||
migrations.AlterField( | ||
model_name='organization', | ||
name='extras', | ||
field=models.JSONField(blank=True, default=dict, help_text='A key-value store for storing arbitrary information not covered elsewhere.'), | ||
), | ||
migrations.AlterField( | ||
model_name='person', | ||
name='extras', | ||
field=models.JSONField(blank=True, default=dict, help_text='A key-value store for storing arbitrary information not covered elsewhere.'), | ||
), | ||
migrations.AlterField( | ||
model_name='post', | ||
name='extras', | ||
field=models.JSONField(blank=True, default=dict, help_text='A key-value store for storing arbitrary information not covered elsewhere.'), | ||
), | ||
] |
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
43 changes: 43 additions & 0 deletions
43
opencivicdata/elections/migrations/0011_auto_20241111_1450.py
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,43 @@ | ||
# Generated by Django 3.2 on 2024-11-11 14:50 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('elections', '0010_auto_20221215_1132'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='ballotmeasurecontest', | ||
name='extras', | ||
field=models.JSONField(blank=True, default=dict, help_text='A key-value store for storing arbitrary information not covered elsewhere.'), | ||
), | ||
migrations.AlterField( | ||
model_name='candidacy', | ||
name='extras', | ||
field=models.JSONField(blank=True, default=dict, help_text='A key-value store for storing arbitrary information not covered elsewhere.'), | ||
), | ||
migrations.AlterField( | ||
model_name='candidatecontest', | ||
name='extras', | ||
field=models.JSONField(blank=True, default=dict, help_text='A key-value store for storing arbitrary information not covered elsewhere.'), | ||
), | ||
migrations.AlterField( | ||
model_name='election', | ||
name='extras', | ||
field=models.JSONField(blank=True, default=dict, help_text='A key-value store for storing arbitrary information not covered elsewhere.'), | ||
), | ||
migrations.AlterField( | ||
model_name='partycontest', | ||
name='extras', | ||
field=models.JSONField(blank=True, default=dict, help_text='A key-value store for storing arbitrary information not covered elsewhere.'), | ||
), | ||
migrations.AlterField( | ||
model_name='retentioncontest', | ||
name='extras', | ||
field=models.JSONField(blank=True, default=dict, help_text='A key-value store for storing arbitrary information not covered elsewhere.'), | ||
), | ||
] |
48 changes: 48 additions & 0 deletions
48
opencivicdata/legislative/migrations/0016_auto_20241111_1450.py
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,48 @@ | ||
# Generated by Django 3.2 on 2024-11-11 14:50 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('legislative', '0015_auto_20221215_1132'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='bill', | ||
name='extras', | ||
field=models.JSONField(blank=True, default=dict, help_text='A key-value store for storing arbitrary information not covered elsewhere.'), | ||
), | ||
migrations.AlterField( | ||
model_name='billaction', | ||
name='extras', | ||
field=models.JSONField(blank=True, default=dict), | ||
), | ||
migrations.AlterField( | ||
model_name='billdocument', | ||
name='extras', | ||
field=models.JSONField(blank=True, default=dict), | ||
), | ||
migrations.AlterField( | ||
model_name='billversion', | ||
name='extras', | ||
field=models.JSONField(blank=True, default=dict), | ||
), | ||
migrations.AlterField( | ||
model_name='event', | ||
name='extras', | ||
field=models.JSONField(blank=True, default=dict, help_text='A key-value store for storing arbitrary information not covered elsewhere.'), | ||
), | ||
migrations.AlterField( | ||
model_name='eventagendaitem', | ||
name='extras', | ||
field=models.JSONField(blank=True, default=dict), | ||
), | ||
migrations.AlterField( | ||
model_name='voteevent', | ||
name='extras', | ||
field=models.JSONField(blank=True, default=dict), | ||
), | ||
] |
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
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 |
---|---|---|
|
@@ -2,4 +2,4 @@ | |
universal = 1 | ||
[flake8] | ||
max-line-length=100 | ||
exclude = opencivicdata/*/migrations | ||
exclude = */migrations |
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