Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
8177685c55
@ -62,7 +62,7 @@ def remove_nulls(apps, schema_editor):
|
||||
study = apps.get_model('map', 'CaseStudy')
|
||||
for study in CaseStudy.objects.all():
|
||||
for field in string_fields:
|
||||
if study._meta.get_field(field) == None:
|
||||
if getattr(study, field) == None:
|
||||
setattr(study, field, '')
|
||||
|
||||
study.save()
|
||||
|
Loading…
Reference in New Issue
Block a user