46 lines
1.5 KiB
Python
46 lines
1.5 KiB
Python
|
# -*- coding: utf-8 -*-
|
||
|
# Generated by Django 1.11.3 on 2017-08-17 12:21
|
||
|
from __future__ import unicode_literals
|
||
|
|
||
|
from django.conf import settings
|
||
|
from django.db import migrations, models
|
||
|
import django.db.models.deletion
|
||
|
|
||
|
|
||
|
class Migration(migrations.Migration):
|
||
|
|
||
|
initial = True
|
||
|
|
||
|
dependencies = [
|
||
|
('contenttypes', '0002_remove_content_type_name'),
|
||
|
('communication', '0001_initial'),
|
||
|
('auth', '0008_alter_user_username_max_length'),
|
||
|
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
|
||
|
]
|
||
|
|
||
|
operations = [
|
||
|
migrations.AddField(
|
||
|
model_name='usersubscription',
|
||
|
name='user',
|
||
|
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL),
|
||
|
),
|
||
|
migrations.AddField(
|
||
|
model_name='groupsubscription',
|
||
|
name='content_type',
|
||
|
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='contenttypes.ContentType'),
|
||
|
),
|
||
|
migrations.AddField(
|
||
|
model_name='groupsubscription',
|
||
|
name='group',
|
||
|
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='auth.Group'),
|
||
|
),
|
||
|
migrations.AlterUniqueTogether(
|
||
|
name='usersubscription',
|
||
|
unique_together=set([('user', 'content_type', 'object_id')]),
|
||
|
),
|
||
|
migrations.AlterUniqueTogether(
|
||
|
name='groupsubscription',
|
||
|
unique_together=set([('group', 'content_type', 'object_id')]),
|
||
|
),
|
||
|
]
|