71 lines
2.9 KiB
Python
71 lines
2.9 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 = [
|
||
|
('event', '0001_initial'),
|
||
|
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
|
||
|
]
|
||
|
|
||
|
operations = [
|
||
|
migrations.AddField(
|
||
|
model_name='event',
|
||
|
name='created_by',
|
||
|
field=models.ForeignKey(editable=False, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='created_events', to=settings.AUTH_USER_MODEL, verbose_name='créé par'),
|
||
|
),
|
||
|
migrations.AddField(
|
||
|
model_name='activitytemplate',
|
||
|
name='event',
|
||
|
field=models.ForeignKey(editable=False, on_delete=django.db.models.deletion.CASCADE, to='event.Event', verbose_name='évènement'),
|
||
|
),
|
||
|
migrations.AddField(
|
||
|
model_name='activitytemplate',
|
||
|
name='places',
|
||
|
field=models.ManyToManyField(blank=True, to='event.Place', verbose_name='lieux'),
|
||
|
),
|
||
|
migrations.AddField(
|
||
|
model_name='activitytemplate',
|
||
|
name='tags',
|
||
|
field=models.ManyToManyField(blank=True, to='event.ActivityTag', verbose_name='tags'),
|
||
|
),
|
||
|
migrations.AddField(
|
||
|
model_name='activitytag',
|
||
|
name='event',
|
||
|
field=models.ForeignKey(blank=True, help_text="Si spécifié, l'instance du modèle est spécifique à l'évènement en question.", null=True, on_delete=django.db.models.deletion.CASCADE, to='event.Event', verbose_name='évènement'),
|
||
|
),
|
||
|
migrations.AddField(
|
||
|
model_name='activity',
|
||
|
name='event',
|
||
|
field=models.ForeignKey(editable=False, on_delete=django.db.models.deletion.CASCADE, to='event.Event', verbose_name='évènement'),
|
||
|
),
|
||
|
migrations.AddField(
|
||
|
model_name='activity',
|
||
|
name='parent',
|
||
|
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, related_name='children', to='event.ActivityTemplate', verbose_name='template'),
|
||
|
),
|
||
|
migrations.AddField(
|
||
|
model_name='activity',
|
||
|
name='places',
|
||
|
field=models.ManyToManyField(blank=True, to='event.Place', verbose_name='lieux'),
|
||
|
),
|
||
|
migrations.AddField(
|
||
|
model_name='activity',
|
||
|
name='staff',
|
||
|
field=models.ManyToManyField(blank=True, related_name='in_perm_activities', to=settings.AUTH_USER_MODEL, verbose_name='permanents'),
|
||
|
),
|
||
|
migrations.AddField(
|
||
|
model_name='activity',
|
||
|
name='tags',
|
||
|
field=models.ManyToManyField(blank=True, to='event.ActivityTag', verbose_name='tags'),
|
||
|
),
|
||
|
]
|