old_contents: # -*- coding: utf-8 -*-
  # Generated by Django 1.9.13 on 2018-05-07 19:25
  from __future__ import unicode_literals
  
  from django.db import migrations
  
  
  def show_version_warning_to_existing_projects(apps, schema_editor):
      Project = apps.get_model('projects', 'Project')
      for project in Project.objects.all():
          project.show_version_warning = True
          project.save()
  
  
  class Migration(migrations.Migration):
  
      dependencies = [
          ('projects', '0024_add-show-version-warning'),
      ]
  
      operations = [
          migrations.RunPython(show_version_warning_to_existing_projects),
      ]
  
new_contents: # -*- coding: utf-8 -*-
  # Generated by Django 1.9.13 on 2018-05-07 19:25
  from __future__ import unicode_literals
  
  from django.db import migrations
  
  
  def show_version_warning_to_existing_projects(apps, schema_editor):
      Project = apps.get_model('projects', 'Project')
      Project.objects.all().update(show_version_warning=True)
  
  
  class Migration(migrations.Migration):
  
      dependencies = [
          ('projects', '0024_add-show-version-warning'),
      ]
  
      operations = [
          migrations.RunPython(show_version_warning_to_existing_projects),
      ]
  
subject: Use update