2017-07-18 15:37:13 +02:00
|
|
|
# -*- coding: utf-8 -*-
|
2017-07-18 18:41:44 +02:00
|
|
|
# Generated by Django 1.11.3 on 2017-07-18 16:10
|
2017-07-18 15:37:13 +02:00
|
|
|
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 = [
|
|
|
|
('auth', '0008_alter_user_username_max_length'),
|
2017-07-18 18:41:44 +02:00
|
|
|
('contenttypes', '0002_remove_content_type_name'),
|
|
|
|
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
|
2017-07-18 15:37:13 +02:00
|
|
|
]
|
|
|
|
|
|
|
|
operations = [
|
|
|
|
migrations.CreateModel(
|
|
|
|
name='GroupSubscription',
|
|
|
|
fields=[
|
|
|
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
|
|
('object_id', models.PositiveIntegerField()),
|
|
|
|
('content_type', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='contenttypes.ContentType')),
|
|
|
|
('group', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='auth.Group')),
|
|
|
|
],
|
|
|
|
options={
|
|
|
|
'verbose_name': 'souscription en groupe',
|
|
|
|
},
|
|
|
|
),
|
|
|
|
migrations.CreateModel(
|
|
|
|
name='UserSubscription',
|
|
|
|
fields=[
|
|
|
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
|
|
('object_id', models.PositiveIntegerField()),
|
|
|
|
('is_unsub', models.BooleanField(default=False, verbose_name='désinscription')),
|
|
|
|
('content_type', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='contenttypes.ContentType')),
|
|
|
|
('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
|
|
|
|
],
|
|
|
|
options={
|
|
|
|
'verbose_name': 'souscription utilisateur',
|
|
|
|
},
|
|
|
|
),
|
2017-07-18 17:18:54 +02:00
|
|
|
migrations.AlterUniqueTogether(
|
|
|
|
name='usersubscription',
|
|
|
|
unique_together=set([('user', 'content_type', 'object_id')]),
|
|
|
|
),
|
|
|
|
migrations.AlterUniqueTogether(
|
|
|
|
name='groupsubscription',
|
|
|
|
unique_together=set([('group', 'content_type', 'object_id')]),
|
|
|
|
),
|
2017-07-18 15:37:13 +02:00
|
|
|
]
|