예제 #1
0
class Migration(migrations.Migration):

    initial = True

    dependencies = []

    operations = [
        migrations.CreateModel(
            name='Site',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('title', models.CharField(default='illic', max_length=140)),
                ('social_description',
                 models.CharField(default='Social description',
                                  max_length=140)),
                ('who',
                 ckeditor.fields.RichTextField(
                     verbose_name='¿Quiénes somos?')),
                ('when',
                 ckeditor.fields.RichTextField(
                     verbose_name='¿Cuándo acudir a Terapia')),
                ('phone', models.CharField(max_length=140)),
                ('email', models.EmailField(max_length=254)),
                ('message', models.CharField(max_length=140)),
                ('footer_message', models.CharField(max_length=140)),
            ],
            options={
                'verbose_name': 'Textos del sitio',
                'verbose_name_plural': 'Textos del sitio',
            },
        ),
        migrations.CreateModel(
            name='Therapy',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('order',
                 models.PositiveIntegerField(db_index=True,
                                             default=0,
                                             editable=False)),
                ('title', models.CharField(default='Terapia', max_length=140)),
                ('slug', models.CharField(editable=False, max_length=200)),
                ('image',
                 models.FileField(upload_to=cms.models.upload_to_therapy)),
            ],
            options={
                'verbose_name': 'Terapia',
                'verbose_name_plural': 'Terapias',
                'ordering': ['order'],
            },
        ),
    ]
예제 #2
0
class Migration(migrations.Migration):

    initial = True

    dependencies = [
        ('auth', '0009_alter_user_last_name_max_length'),
    ]

    operations = [
        migrations.CreateModel(
            name='User',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('password', models.CharField(max_length=128, verbose_name='password')),
                ('last_login', models.DateTimeField(blank=True, null=True, verbose_name='last login')),
                ('is_superuser', models.BooleanField(default=False, help_text='Designates that this user has all permissions without explicitly assigning them.', verbose_name='superuser status')),
                ('username', models.CharField(error_messages={'unique': 'A user with that username already exists.'}, help_text='Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.', max_length=150, unique=True, validators=[django.contrib.auth.validators.UnicodeUsernameValidator()], verbose_name='username')),
                ('first_name', models.CharField(blank=True, max_length=150, verbose_name='first name')),
                ('last_name', models.CharField(blank=True, max_length=150, verbose_name='last name')),
                ('email', models.EmailField(max_length=254, unique=True, verbose_name='email address')),
                ('is_staff', models.BooleanField(default=False, help_text='Designates whether the user can log into this admin site.', verbose_name='staff status')),
                ('is_active', models.BooleanField(default=True, help_text='Designates whether this user should be treated as active. Unselect this instead of deleting accounts.', verbose_name='active')),
                ('date_joined', models.DateTimeField(default=django.utils.timezone.now, verbose_name='date joined')),
                ('groups', models.ManyToManyField(blank=True, help_text='The groups this user belongs to. A user will get all permissions granted to each of their groups.', related_name='user_set', related_query_name='user', to='auth.Group', verbose_name='groups')),
                ('user_permissions', models.ManyToManyField(blank=True, help_text='Specific permissions for this user.', related_name='user_set', related_query_name='user', to='auth.Permission', verbose_name='user permissions')),
            ],
            options={
                'verbose_name': 'user',
                'verbose_name_plural': 'users',
                'abstract': False,
                'swappable': 'AUTH_USER_MODEL',
            },
            managers=[
                ('objects', cms.models.UserManager()),
            ],
        ),
    ]
class Migration(migrations.Migration):

    initial = True

    dependencies = [
        ('contenttypes', '0002_remove_content_type_name'),
    ]

    operations = [
        migrations.CreateModel(
            name='Categoria',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('estado',
                 models.CharField(choices=[('Activo', 'Activo'),
                                           ('Inactivo', 'Inactivo')],
                                  default=1,
                                  max_length=20,
                                  verbose_name='Estado')),
                ('titulo',
                 models.CharField(max_length=100, verbose_name='Título')),
                ('en_titulo',
                 models.CharField(blank=True,
                                  default='',
                                  max_length=100,
                                  verbose_name='En Título')),
                ('subtitulo',
                 models.CharField(blank=True,
                                  max_length=100,
                                  verbose_name='Subtítulo')),
                ('en_subtitulo',
                 models.CharField(blank=True,
                                  default='',
                                  max_length=100,
                                  verbose_name='En Subtítulo')),
                ('informacion',
                 ckeditor.fields.RichTextField(blank=True,
                                               verbose_name='Información')),
                ('en_informacion',
                 ckeditor.fields.RichTextField(blank=True,
                                               default='',
                                               verbose_name='En Información')),
                ('prioridad',
                 cms.models.IntegerRangeField(blank=True,
                                              null=True,
                                              verbose_name='Prioridad')),
                ('created_date',
                 models.DateTimeField(auto_now_add=True,
                                      verbose_name='Fecha Creación')),
                ('updated_date',
                 models.DateTimeField(auto_now=True,
                                      verbose_name='Fecha Actualización')),
                ('color',
                 models.CharField(blank=True,
                                  max_length=7,
                                  null=True,
                                  verbose_name='Color')),
                ('categoria_padre',
                 models.ForeignKey(blank=True,
                                   null=True,
                                   on_delete=django.db.models.deletion.CASCADE,
                                   related_name='parent_category',
                                   related_query_name='child_category',
                                   to='cms.Categoria',
                                   verbose_name='Categoría Padre')),
            ],
            options={
                'verbose_name': 'Categoría',
                'verbose_name_plural': 'Categorías',
            },
        ),
        migrations.CreateModel(
            name='Horario',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('estado',
                 models.CharField(choices=[('Activo', 'Activo'),
                                           ('Inactivo', 'Inactivo')],
                                  default=1,
                                  max_length=20,
                                  verbose_name='Estado')),
                ('titulo',
                 models.CharField(max_length=100, verbose_name='Título')),
                ('en_titulo',
                 models.CharField(blank=True,
                                  default='',
                                  max_length=100,
                                  verbose_name='En Título')),
                ('subtitulo',
                 models.CharField(blank=True,
                                  max_length=100,
                                  verbose_name='Subtítulo')),
                ('en_subtitulo',
                 models.CharField(blank=True,
                                  default='',
                                  max_length=100,
                                  verbose_name='En Subtítulo')),
                ('informacion',
                 ckeditor.fields.RichTextField(blank=True,
                                               verbose_name='Información')),
                ('en_informacion',
                 ckeditor.fields.RichTextField(blank=True,
                                               default='',
                                               verbose_name='En Información')),
                ('prioridad',
                 cms.models.IntegerRangeField(blank=True,
                                              null=True,
                                              verbose_name='Prioridad')),
                ('created_date',
                 models.DateTimeField(auto_now_add=True,
                                      verbose_name='Fecha Creación')),
                ('updated_date',
                 models.DateTimeField(auto_now=True,
                                      verbose_name='Fecha Actualización')),
            ],
            options={
                'verbose_name': 'Horario',
                'verbose_name_plural': 'Horarios',
            },
        ),
        migrations.CreateModel(
            name='Lugar',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('estado',
                 models.CharField(choices=[('Activo', 'Activo'),
                                           ('Inactivo', 'Inactivo')],
                                  default=1,
                                  max_length=20,
                                  verbose_name='Estado')),
                ('titulo',
                 models.CharField(max_length=100, verbose_name='Título')),
                ('en_titulo',
                 models.CharField(blank=True,
                                  default='',
                                  max_length=100,
                                  verbose_name='En Título')),
                ('subtitulo',
                 models.CharField(blank=True,
                                  max_length=100,
                                  verbose_name='Subtítulo')),
                ('en_subtitulo',
                 models.CharField(blank=True,
                                  default='',
                                  max_length=100,
                                  verbose_name='En Subtítulo')),
                ('informacion',
                 ckeditor.fields.RichTextField(blank=True,
                                               verbose_name='Información')),
                ('en_informacion',
                 ckeditor.fields.RichTextField(blank=True,
                                               default='',
                                               verbose_name='En Información')),
                ('prioridad',
                 cms.models.IntegerRangeField(blank=True,
                                              null=True,
                                              verbose_name='Prioridad')),
                ('created_date',
                 models.DateTimeField(auto_now_add=True,
                                      verbose_name='Fecha Creación')),
                ('updated_date',
                 models.DateTimeField(auto_now=True,
                                      verbose_name='Fecha Actualización')),
                ('puntuacion',
                 cms.models.IntegerRangeField(blank=True,
                                              null=True,
                                              verbose_name='Puntuación')),
                ('destacado',
                 models.BooleanField(blank=True,
                                     default=False,
                                     verbose_name='Destacado')),
                ('servicios',
                 models.TextField(blank=True,
                                  default='',
                                  verbose_name='Servicios')),
                ('en_servicios',
                 models.TextField(blank=True,
                                  default='',
                                  verbose_name='En Servicios')),
                ('latitud',
                 models.CharField(blank=True,
                                  max_length=20,
                                  null=True,
                                  verbose_name='Latitud')),
                ('longitud',
                 models.CharField(blank=True,
                                  max_length=20,
                                  null=True,
                                  verbose_name='Longitud')),
                ('telefono1',
                 models.CharField(blank=True,
                                  max_length=20,
                                  null=True,
                                  verbose_name='Teléfono 1')),
                ('telefono2',
                 models.CharField(blank=True,
                                  max_length=20,
                                  null=True,
                                  verbose_name='Teléfono 2')),
                ('url',
                 models.URLField(blank=True,
                                 null=True,
                                 verbose_name='Pagina Web')),
                ('reserva',
                 models.URLField(blank=True,
                                 null=True,
                                 verbose_name='Reservar')),
                ('compra',
                 models.URLField(blank=True, null=True,
                                 verbose_name='Comprar')),
                ('email',
                 models.EmailField(blank=True,
                                   max_length=254,
                                   null=True,
                                   verbose_name='Email')),
                ('vista360',
                 models.URLField(blank=True,
                                 null=True,
                                 verbose_name='Vista 360')),
                ('facebook',
                 models.URLField(blank=True,
                                 null=True,
                                 verbose_name='Facebook')),
                ('twitter',
                 models.URLField(blank=True, null=True,
                                 verbose_name='Twitter')),
                ('instagram',
                 models.URLField(blank=True,
                                 null=True,
                                 verbose_name='Instagram')),
                ('categoria',
                 models.ForeignKey(null=True,
                                   on_delete=django.db.models.deletion.CASCADE,
                                   related_name='place_category',
                                   to='cms.Categoria',
                                   verbose_name='Categoria')),
            ],
            options={
                'verbose_name': 'Lugar',
                'verbose_name_plural': 'Lugares',
            },
        ),
        migrations.CreateModel(
            name='Video',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('titulo',
                 models.CharField(max_length=100, verbose_name='Título')),
                ('video',
                 embed_video.fields.EmbedVideoField(verbose_name='Video Url')),
                ('object_id',
                 models.PositiveIntegerField(default=1,
                                             verbose_name='Objeto')),
                ('content_type',
                 models.ForeignKey(null=True,
                                   on_delete=django.db.models.deletion.CASCADE,
                                   related_name='content_type_video',
                                   to='contenttypes.ContentType',
                                   verbose_name='Tipo')),
            ],
            options={
                'verbose_name': 'Video',
                'verbose_name_plural': 'Videos',
            },
        ),
        migrations.CreateModel(
            name='Publicacion',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('estado',
                 models.CharField(choices=[('Activo', 'Activo'),
                                           ('Inactivo', 'Inactivo')],
                                  default=1,
                                  max_length=20,
                                  verbose_name='Estado')),
                ('titulo',
                 models.CharField(max_length=100, verbose_name='Título')),
                ('en_titulo',
                 models.CharField(blank=True,
                                  default='',
                                  max_length=100,
                                  verbose_name='En Título')),
                ('subtitulo',
                 models.CharField(blank=True,
                                  max_length=100,
                                  verbose_name='Subtítulo')),
                ('en_subtitulo',
                 models.CharField(blank=True,
                                  default='',
                                  max_length=100,
                                  verbose_name='En Subtítulo')),
                ('informacion',
                 ckeditor.fields.RichTextField(blank=True,
                                               verbose_name='Información')),
                ('en_informacion',
                 ckeditor.fields.RichTextField(blank=True,
                                               default='',
                                               verbose_name='En Información')),
                ('prioridad',
                 cms.models.IntegerRangeField(blank=True,
                                              null=True,
                                              verbose_name='Prioridad')),
                ('created_date',
                 models.DateTimeField(auto_now_add=True,
                                      verbose_name='Fecha Creación')),
                ('updated_date',
                 models.DateTimeField(auto_now=True,
                                      verbose_name='Fecha Actualización')),
                ('tipo',
                 models.CharField(choices=[('Noticia', 'Noticia'),
                                           ('Evento', 'Evento')],
                                  default=1,
                                  max_length=20,
                                  verbose_name='Tipo')),
                ('categoria',
                 models.ForeignKey(null=True,
                                   on_delete=django.db.models.deletion.CASCADE,
                                   related_name='publication_category',
                                   to='cms.Categoria',
                                   verbose_name='Categoría')),
            ],
            options={
                'verbose_name': 'Publicacion',
                'verbose_name_plural': 'Publicaciones',
            },
        ),
        migrations.CreateModel(
            name='Promo',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('estado',
                 models.CharField(choices=[('Activo', 'Activo'),
                                           ('Inactivo', 'Inactivo')],
                                  default=1,
                                  max_length=20,
                                  verbose_name='Estado')),
                ('titulo',
                 models.CharField(max_length=100, verbose_name='Título')),
                ('en_titulo',
                 models.CharField(blank=True,
                                  default='',
                                  max_length=100,
                                  verbose_name='En Título')),
                ('subtitulo',
                 models.CharField(blank=True,
                                  max_length=100,
                                  verbose_name='Subtítulo')),
                ('en_subtitulo',
                 models.CharField(blank=True,
                                  default='',
                                  max_length=100,
                                  verbose_name='En Subtítulo')),
                ('informacion',
                 ckeditor.fields.RichTextField(blank=True,
                                               verbose_name='Información')),
                ('en_informacion',
                 ckeditor.fields.RichTextField(blank=True,
                                               default='',
                                               verbose_name='En Información')),
                ('prioridad',
                 cms.models.IntegerRangeField(blank=True,
                                              null=True,
                                              verbose_name='Prioridad')),
                ('created_date',
                 models.DateTimeField(auto_now_add=True,
                                      verbose_name='Fecha Creación')),
                ('updated_date',
                 models.DateTimeField(auto_now=True,
                                      verbose_name='Fecha Actualización')),
                ('lugar',
                 models.ForeignKey(null=True,
                                   on_delete=django.db.models.deletion.CASCADE,
                                   related_name='promo_place',
                                   to='cms.Lugar',
                                   verbose_name='Lugar')),
            ],
            options={
                'verbose_name': 'Promo',
                'verbose_name_plural': 'Promos',
            },
        ),
        migrations.CreateModel(
            name='Precio',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('estado',
                 models.CharField(choices=[('Activo', 'Activo'),
                                           ('Inactivo', 'Inactivo')],
                                  default=1,
                                  max_length=20,
                                  verbose_name='Estado')),
                ('titulo',
                 models.CharField(max_length=100, verbose_name='Título')),
                ('en_titulo',
                 models.CharField(blank=True,
                                  default='',
                                  max_length=100,
                                  verbose_name='En Título')),
                ('subtitulo',
                 models.CharField(blank=True,
                                  max_length=100,
                                  verbose_name='Subtítulo')),
                ('en_subtitulo',
                 models.CharField(blank=True,
                                  default='',
                                  max_length=100,
                                  verbose_name='En Subtítulo')),
                ('informacion',
                 ckeditor.fields.RichTextField(blank=True,
                                               verbose_name='Información')),
                ('en_informacion',
                 ckeditor.fields.RichTextField(blank=True,
                                               default='',
                                               verbose_name='En Información')),
                ('prioridad',
                 cms.models.IntegerRangeField(blank=True,
                                              null=True,
                                              verbose_name='Prioridad')),
                ('created_date',
                 models.DateTimeField(auto_now_add=True,
                                      verbose_name='Fecha Creación')),
                ('updated_date',
                 models.DateTimeField(auto_now=True,
                                      verbose_name='Fecha Actualización')),
                ('cantidad',
                 models.DecimalField(decimal_places=2,
                                     default=0,
                                     max_digits=6,
                                     verbose_name='Cantidad')),
                ('lugar',
                 models.ForeignKey(null=True,
                                   on_delete=django.db.models.deletion.CASCADE,
                                   related_name='price_place',
                                   to='cms.Lugar',
                                   verbose_name='Lugar')),
            ],
            options={
                'verbose_name': 'Precio',
                'verbose_name_plural': 'Precios',
            },
        ),
        migrations.CreateModel(
            name='PeriodoHorario',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('dia',
                 models.CharField(blank=True,
                                  choices=[('Lunes', 'Lunes'),
                                           ('Martes', 'Martes'),
                                           ('Miercoles', 'Miercoles'),
                                           ('Jueves', 'Jueves'),
                                           ('Viernes', 'Viernes'),
                                           ('Sábado', 'Sábado'),
                                           ('Domingo', 'Domingo')],
                                  default='Lunes',
                                  max_length=9,
                                  verbose_name='Día')),
                ('inicio',
                 models.TimeField(default='09:00', verbose_name='Apertura')),
                ('fin', models.TimeField(default='20:00',
                                         verbose_name='Cierre')),
                ('horario',
                 models.ForeignKey(blank=True,
                                   on_delete=django.db.models.deletion.CASCADE,
                                   related_name='schedule_periods',
                                   to='cms.Horario',
                                   verbose_name='Horario')),
            ],
            options={
                'verbose_name': 'Periodo Horario',
                'verbose_name_plural': 'Periodos Horario',
            },
        ),
        migrations.CreateModel(
            name='Imagen',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('titulo',
                 models.CharField(max_length=100, verbose_name='Título')),
                ('header',
                 models.BooleanField(default=False, verbose_name='Principal')),
                ('imagen',
                 models.ImageField(default='photos/default.jpg',
                                   upload_to='photos',
                                   verbose_name='Imagen')),
                ('object_id',
                 models.PositiveIntegerField(default=1,
                                             verbose_name='Objeto')),
                ('content_type',
                 models.ForeignKey(null=True,
                                   on_delete=django.db.models.deletion.CASCADE,
                                   related_name='content_type_image',
                                   to='contenttypes.ContentType',
                                   verbose_name='Tipo')),
            ],
            options={
                'verbose_name': 'Imagen',
                'verbose_name_plural': 'Imagenes',
            },
        ),
        migrations.AddField(
            model_name='horario',
            name='lugar',
            field=models.ForeignKey(
                null=True,
                on_delete=django.db.models.deletion.CASCADE,
                related_name='schedule_place',
                to='cms.Lugar',
                verbose_name='Lugar'),
        ),
    ]
예제 #4
0
class Migration(migrations.Migration):

    initial = True

    dependencies = [
        ('auth', '0009_alter_user_last_name_max_length'),
    ]

    operations = [
        migrations.CreateModel(
            name='User',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('password',
                 models.CharField(max_length=128, verbose_name='password')),
                ('last_login',
                 models.DateTimeField(blank=True,
                                      null=True,
                                      verbose_name='last login')),
                ('is_superuser',
                 models.BooleanField(
                     default=False,
                     help_text=
                     'Designates that this user has all permissions without explicitly assigning them.',
                     verbose_name='superuser status')),
                ('username',
                 models.CharField(
                     error_messages={
                         'unique': 'A user with that username already exists.'
                     },
                     help_text=
                     'Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.',
                     max_length=150,
                     unique=True,
                     validators=[
                         django.contrib.auth.validators.
                         UnicodeUsernameValidator()
                     ],
                     verbose_name='username')),
                ('first_name',
                 models.CharField(blank=True,
                                  max_length=150,
                                  verbose_name='first name')),
                ('last_name',
                 models.CharField(blank=True,
                                  max_length=150,
                                  verbose_name='last name')),
                ('profile_picture',
                 models.ImageField(blank=True, upload_to='profile_picture')),
                ('email',
                 models.EmailField(max_length=254,
                                   unique=True,
                                   verbose_name='email address')),
                ('is_staff',
                 models.BooleanField(
                     default=False,
                     help_text=
                     'Designates whether the user can log into this admin site.',
                     verbose_name='staff status')),
                ('is_active',
                 models.BooleanField(
                     default=True,
                     help_text=
                     'Designates whether this user should be treated as active. Unselect this instead of deleting accounts.',
                     verbose_name='active')),
                ('date_joined',
                 models.DateTimeField(default=django.utils.timezone.now,
                                      verbose_name='date joined')),
                ('twitter',
                 models.CharField(blank=True,
                                  max_length=50,
                                  verbose_name='Twitter')),
            ],
            options={
                'verbose_name': 'user',
                'verbose_name_plural': 'users',
                'abstract': False,
                'swappable': 'AUTH_USER_MODEL',
            },
            managers=[
                ('objects', cms.models.UserManager()),
            ],
        ),
        migrations.CreateModel(
            name='Image',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('picture', models.ImageField(upload_to='profile_picture')),
                ('title', models.CharField(max_length=200)),
            ],
        ),
        migrations.CreateModel(
            name='Post',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('message', models.TextField(max_length=3000)),
                ('created_at', models.DateTimeField(auto_now_add=True)),
                ('created_by',
                 models.ForeignKey(null=True,
                                   on_delete=django.db.models.deletion.CASCADE,
                                   related_name='user',
                                   to=settings.AUTH_USER_MODEL)),
            ],
        ),
        migrations.CreateModel(
            name='Profile',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('name', models.CharField(max_length=50)),
                ('picture', models.ImageField(upload_to='profile_picture')),
            ],
            options={
                'db_table': 'profile',
            },
        ),
        migrations.CreateModel(
            name='Thread',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('subject', models.CharField(max_length=100)),
                ('code', models.CharField(max_length=100, null=True)),
                ('faculty',
                 models.CharField(choices=[('前期教養学部', '前期教養学部'),
                                           ('後期教養学部', '後期教養学部'),
                                           ('法学部', '法学部'), ('経済学部', '経済学部'),
                                           ('文学部', '文学部'), ('教育学部', '教育学部'),
                                           ('理学部', '理学部'), ('工学部', '工学部'),
                                           ('農学部', '農学部'), ('薬学部', '薬学部'),
                                           ('医学部', '医学部')],
                                  max_length=20,
                                  null=True)),
            ],
        ),
        migrations.AddField(
            model_name='post',
            name='thread',
            field=models.ForeignKey(
                null=True,
                on_delete=django.db.models.deletion.CASCADE,
                related_name='threads',
                to='cms.Thread'),
        ),
        migrations.AddField(
            model_name='user',
            name='favorite_thread',
            field=models.ManyToManyField(blank=True, to='cms.Thread'),
        ),
        migrations.AddField(
            model_name='user',
            name='groups',
            field=models.ManyToManyField(
                blank=True,
                help_text=
                'The groups this user belongs to. A user will get all permissions granted to each of their groups.',
                related_name='user_set',
                related_query_name='user',
                to='auth.Group',
                verbose_name='groups'),
        ),
        migrations.AddField(
            model_name='user',
            name='user_permissions',
            field=models.ManyToManyField(
                blank=True,
                help_text='Specific permissions for this user.',
                related_name='user_set',
                related_query_name='user',
                to='auth.Permission',
                verbose_name='user permissions'),
        ),
    ]