text: from __future__ import unicode_literals
  
  from django.db import migrations
  
  
  def delete_crontabs(apps, schema_editor):
      MailingTask = apps.get_model('notifications', 'MailingTask')
      MailingTask.objects.all().delete()
      PeriodicTask = apps.get_model('django_celery_beat', 'PeriodicTask')
      PeriodicTask.objects.all().delete()
      CrontabSchedule = apps.get_model('django_celery_beat', 'CrontabSchedule')
      CrontabSchedule.objects.all().delete()
  
  
  class Migration(migrations.Migration):
  
      dependencies = [
          ('django_celery_beat', '0006_auto_20180210_1226'),
          ('notifications', '0001_add_mailing_task_model'),
      ]
  
      operations = [
          migrations.RunPython(delete_crontabs, migrations.RunPython.noop),
      ]
  