text: # -*- coding: utf-8 -*-
  # Generated by Django 1.11.28 on 2021-09-13 20:08
  from __future__ import unicode_literals
  
  from django.conf import settings
  from django.db import migrations, models
  import django.db.models.deletion
  import django_extensions.db.fields
  import osf.models.base
  import osf.utils.fields
  
  
  class Migration(migrations.Migration):
  
      dependencies = [
          ('osf', '0235_auto_20210823_1310'),
      ]
  
      operations = [
          migrations.CreateModel(
              name='SchemaResponseAction',
              fields=[
                  ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                  ('created', django_extensions.db.fields.CreationDateTimeField(auto_now_add=True, verbose_name='created')),
                  ('modified', django_extensions.db.fields.ModificationDateTimeField(auto_now=True, verbose_name='modified')),
                  ('_id', models.CharField(db_index=True, default=osf.models.base.generate_object_id, max_length=24, unique=True)),
                  ('comment', models.TextField(blank=True)),
                  ('is_deleted', models.BooleanField(default=False)),
                  ('auto', models.BooleanField(default=False)),
                  ('trigger', models.CharField(choices=[('submit', 'Submit'), ('approve', 'Approve'), ('accept', 'Accept'), ('admin_reject', 'AdminReject'), ('moderator_reject', 'ModeratorReject')], max_length=31)),
                  ('from_state', models.CharField(choices=[('undefined', 'Undefined'), ('unapproved', 'Unapproved'), ('pending_moderation', 'PendingModeration'), ('approved', 'Approved'), ('rejected', 'Rejected'), ('moderator_rejected', 'ModeratorRejected'), ('completed', 'Completed'), ('in_progress', 'InProgress')], max_length=31)),
                  ('to_state', models.CharField(choices=[('undefined', 'Undefined'), ('unapproved', 'Unapproved'), ('pending_moderation', 'PendingModeration'), ('approved', 'Approved'), ('rejected', 'Rejected'), ('moderator_rejected', 'ModeratorRejected'), ('completed', 'Completed'), ('in_progress', 'InProgress')], max_length=31)),
              ],
              options={
                  'abstract': False,
              },
              bases=(models.Model, osf.models.base.QuerySetExplainMixin),
          ),
          migrations.AlterModelOptions(
              name='schemaresponse',
              options={'ordering': ['-created']},
          ),
          migrations.AddField(
              model_name='schemaresponse',
              name='pending_approvers',
              field=models.ManyToManyField(related_name='pending_submissions', to=settings.AUTH_USER_MODEL),
          ),
          migrations.AddField(
              model_name='schemaresponse',
              name='reviews_state',
              field=models.CharField(choices=[('undefined', 'Undefined'), ('unapproved', 'Unapproved'), ('pending_moderation', 'PendingModeration'), ('approved', 'Approved'), ('rejected', 'Rejected'), ('moderator_rejected', 'ModeratorRejected'), ('completed', 'Completed'), ('in_progress', 'InProgress')], default='in_progress', max_length=255),
          ),
          migrations.AlterField(
              model_name='draftregistrationapproval',
              name='state',
              field=models.CharField(choices=[('undefined', 'Undefined'), ('unapproved', 'Unapproved'), ('pending_moderation', 'PendingModeration'), ('approved', 'Approved'), ('rejected', 'Rejected'), ('moderator_rejected', 'ModeratorRejected'), ('completed', 'Completed'), ('in_progress', 'InProgress')], default='unapproved', max_length=255),
          ),
          migrations.AlterField(
              model_name='embargo',
              name='state',
              field=models.CharField(choices=[('undefined', 'Undefined'), ('unapproved', 'Unapproved'), ('pending_moderation', 'PendingModeration'), ('approved', 'Approved'), ('rejected', 'Rejected'), ('moderator_rejected', 'ModeratorRejected'), ('completed', 'Completed'), ('in_progress', 'InProgress')], default='unapproved', max_length=255),
          ),
          migrations.AlterField(
              model_name='embargoterminationapproval',
              name='state',
              field=models.CharField(choices=[('undefined', 'Undefined'), ('unapproved', 'Unapproved'), ('pending_moderation', 'PendingModeration'), ('approved', 'Approved'), ('rejected', 'Rejected'), ('moderator_rejected', 'ModeratorRejected'), ('completed', 'Completed'), ('in_progress', 'InProgress')], default='unapproved', max_length=255),
          ),
          migrations.AlterField(
              model_name='registrationapproval',
              name='state',
              field=models.CharField(choices=[('undefined', 'Undefined'), ('unapproved', 'Unapproved'), ('pending_moderation', 'PendingModeration'), ('approved', 'Approved'), ('rejected', 'Rejected'), ('moderator_rejected', 'ModeratorRejected'), ('completed', 'Completed'), ('in_progress', 'InProgress')], default='unapproved', max_length=255),
          ),
          migrations.AlterField(
              model_name='retraction',
              name='state',
              field=models.CharField(choices=[('undefined', 'Undefined'), ('unapproved', 'Unapproved'), ('pending_moderation', 'PendingModeration'), ('approved', 'Approved'), ('rejected', 'Rejected'), ('moderator_rejected', 'ModeratorRejected'), ('completed', 'Completed'), ('in_progress', 'InProgress')], default='unapproved', max_length=255),
          ),
          migrations.AlterField(
              model_name='schemaresponse',
              name='previous_response',
              field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='updated_response', to='osf.SchemaResponse'),
          ),
          migrations.AlterField(
              model_name='schemaresponse',
              name='revision_justification',
              field=models.CharField(blank=True, max_length=2048, null=True),
          ),
          migrations.AlterField(
              model_name='schemaresponse',
              name='submitted_timestamp',
              field=osf.utils.fields.NonNaiveDateTimeField(blank=True, null=True),
          ),
          migrations.AddIndex(
              model_name='schemaresponse',
              index=models.Index(fields=['reviews_state'], name='osf_schemar_reviews_c361bc_idx'),
          ),
          migrations.AddField(
              model_name='schemaresponseaction',
              name='creator',
              field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='+', to=settings.AUTH_USER_MODEL),
          ),
          migrations.AddField(
              model_name='schemaresponseaction',
              name='target',
              field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='actions', to='osf.SchemaResponse'),
          ),
      ]
  