-
Notifications
You must be signed in to change notification settings - Fork 4
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 #74 from WHOIGit/develop
Bug fixes for v1.3.0, update to v1.3.1
- Loading branch information
Showing
4 changed files
with
57 additions
and
13 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
22 changes: 22 additions & 0 deletions
22
roundabout/userdefinedfields/migrations/0005_auto_20200517_1814.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,22 @@ | ||
# Generated by Django 2.2.10 on 2020-05-17 18:14 | ||
|
||
from django.apps import apps | ||
from django.db import migrations | ||
|
||
FieldValue = apps.get_model('userdefinedfields', 'FieldValue') | ||
|
||
def remove_nulls(apps, schema_editor): | ||
for fv in FieldValue.objects.all(): | ||
if fv.field_value is None: | ||
fv.field_value = '' | ||
fv.save() | ||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('userdefinedfields', '0004_auto_20200421_0056'), | ||
] | ||
|
||
operations = [ | ||
migrations.RunPython(remove_nulls), | ||
] |
18 changes: 18 additions & 0 deletions
18
roundabout/userdefinedfields/migrations/0006_auto_20200517_1822.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,18 @@ | ||
# Generated by Django 2.2.10 on 2020-05-17 18:22 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('userdefinedfields', '0005_auto_20200517_1814'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='fieldvalue', | ||
name='field_value', | ||
field=models.TextField(blank=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