Merge remote-tracking branch 'origin/master'

This commit is contained in:
Weblate 2018-10-05 13:29:29 +00:00
commit 8177685c55

View File

@ -62,7 +62,7 @@ def remove_nulls(apps, schema_editor):
study = apps.get_model('map', 'CaseStudy') study = apps.get_model('map', 'CaseStudy')
for study in CaseStudy.objects.all(): for study in CaseStudy.objects.all():
for field in string_fields: for field in string_fields:
if study._meta.get_field(field) == None: if getattr(study, field) == None:
setattr(study, field, '') setattr(study, field, '')
study.save() study.save()