Run black over entire codebase
This commit is contained in:
@ -6,18 +6,12 @@ from django.db import migrations
|
||||
|
||||
|
||||
def null_life_span(apps, schema_editor):
|
||||
CaseStudy = apps.get_model('map', 'CaseStudy')
|
||||
CaseStudy.objects.filter(project_life_span=None).update(
|
||||
project_life_span=''
|
||||
)
|
||||
CaseStudy = apps.get_model("map", "CaseStudy")
|
||||
CaseStudy.objects.filter(project_life_span=None).update(project_life_span="")
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('map', '0059_auto_20180519_1801'),
|
||||
]
|
||||
dependencies = [("map", "0059_auto_20180519_1801")]
|
||||
|
||||
operations = [
|
||||
migrations.RunPython(null_life_span),
|
||||
]
|
||||
operations = [migrations.RunPython(null_life_span)]
|
||||
|
||||
Reference in New Issue
Block a user