ojuso-map/apps/map/migrations/0060_project_life_span_null.py

24 lines
522 B
Python
Raw Normal View History

2018-05-24 22:24:55 +00:00
# -*- coding: utf-8 -*-
# Generated by Django 1.11.6 on 2018-05-24 22:19
from __future__ import unicode_literals
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=''
)
class Migration(migrations.Migration):
dependencies = [
('map', '0059_auto_20180519_1801'),
]
operations = [
migrations.RunPython(null_life_span),
]