2017-02-21 21:16:50 +01:00
# -*- coding: utf-8 -*-
2018-08-06 09:52:56 +02:00
# Generated by Django 1.11.15 on 2018-08-06 07:51
2017-02-21 21:16:50 +01:00
from __future__ import unicode_literals
from django . conf import settings
import django . core . validators
from django . db import migrations , models
import django . db . models . deletion
class Migration ( migrations . Migration ) :
initial = True
dependencies = [
migrations . swappable_dependency ( settings . AUTH_USER_MODEL ) ,
]
operations = [
2017-07-18 18:41:44 +02:00
migrations . CreateModel (
name = ' Activity ' ,
fields = [
( ' id ' , models . AutoField ( auto_created = True , primary_key = True , serialize = False , verbose_name = ' ID ' ) ) ,
( ' title ' , models . CharField ( blank = True , max_length = 200 , null = True , verbose_name = " nom de l ' activité " ) ) ,
2017-08-12 14:54:45 +02:00
( ' is_public ' , models . NullBooleanField ( verbose_name = ' est public ' ) ) ,
( ' has_perm ' , models . NullBooleanField ( verbose_name = ' inscription de permanents ' ) ) ,
2017-07-18 18:41:44 +02:00
( ' min_perm ' , models . PositiveSmallIntegerField ( blank = True , null = True , verbose_name = ' nombre minimum de permanents ' ) ) ,
( ' max_perm ' , models . PositiveSmallIntegerField ( blank = True , null = True , verbose_name = ' nombre maximum de permanents ' ) ) ,
2017-08-12 14:54:45 +02:00
( ' description ' , models . TextField ( blank = True , help_text = " Visible par tout le monde si l ' événément est public. " , null = True , verbose_name = ' description ' ) ) ,
( ' remarks ' , models . TextField ( blank = True , help_text = ' Visible uniquement par les organisateurs. ' , null = True , verbose_name = ' remarques ' ) ) ,
2017-07-18 18:41:44 +02:00
( ' beginning ' , models . DateTimeField ( verbose_name = ' heure de début ' ) ) ,
( ' end ' , models . DateTimeField ( verbose_name = ' heure de fin ' ) ) ,
] ,
options = {
' verbose_name ' : ' activité ' ,
2017-07-21 16:20:39 +02:00
' verbose_name_plural ' : ' activités ' ,
2017-07-18 18:41:44 +02:00
} ,
) ,
2017-02-21 21:16:50 +01:00
migrations . CreateModel (
name = ' ActivityTag ' ,
fields = [
( ' id ' , models . AutoField ( auto_created = True , primary_key = True , serialize = False , verbose_name = ' ID ' ) ) ,
2017-07-18 15:37:13 +02:00
( ' name ' , models . CharField ( max_length = 200 , verbose_name = ' nom du tag ' ) ) ,
2017-08-12 14:54:45 +02:00
( ' is_public ' , models . BooleanField ( help_text = " Sert à faire une distinction dans l ' affichage selon que le tag soit destiné au public ou à l ' organisation. " , verbose_name = ' est public ' ) ) ,
( ' color ' , models . CharField ( help_text = ' Rentrer une couleur en hexadécimal (#XXX ou #XXXXXX). ' , max_length = 7 , validators = [ django . core . validators . RegexValidator ( message = " La chaîne de caractère rentrée n ' est pas une couleur en hexadécimal. " , regex = ' ^#(?:[0-9a-fA-F] {3} ) { 1,2}$ ' ) ] , verbose_name = ' couleur ' ) ) ,
2017-02-21 21:16:50 +01:00
] ,
options = {
2017-07-18 18:41:44 +02:00
' verbose_name ' : ' tag ' ,
2017-07-21 16:20:39 +02:00
' verbose_name_plural ' : ' tags ' ,
2017-02-21 21:16:50 +01:00
} ,
) ,
migrations . CreateModel (
name = ' ActivityTemplate ' ,
fields = [
( ' id ' , models . AutoField ( auto_created = True , primary_key = True , serialize = False , verbose_name = ' ID ' ) ) ,
2017-07-18 15:37:13 +02:00
( ' title ' , models . CharField ( blank = True , max_length = 200 , null = True , verbose_name = " nom de l ' activité " ) ) ,
2017-08-12 14:54:45 +02:00
( ' is_public ' , models . NullBooleanField ( verbose_name = ' est public ' ) ) ,
( ' has_perm ' , models . NullBooleanField ( verbose_name = ' inscription de permanents ' ) ) ,
2017-07-18 15:37:13 +02:00
( ' min_perm ' , models . PositiveSmallIntegerField ( blank = True , null = True , verbose_name = ' nombre minimum de permanents ' ) ) ,
( ' max_perm ' , models . PositiveSmallIntegerField ( blank = True , null = True , verbose_name = ' nombre maximum de permanents ' ) ) ,
2017-08-12 14:54:45 +02:00
( ' description ' , models . TextField ( blank = True , help_text = " Visible par tout le monde si l ' événément est public. " , null = True , verbose_name = ' description ' ) ) ,
( ' remarks ' , models . TextField ( blank = True , help_text = ' Visible uniquement par les organisateurs. ' , null = True , verbose_name = ' remarques ' ) ) ,
2017-02-21 21:16:50 +01:00
] ,
options = {
2017-07-18 18:41:44 +02:00
' verbose_name ' : ' template activité ' ,
2017-07-21 16:20:39 +02:00
' verbose_name_plural ' : ' templates activité ' ,
2017-02-21 21:16:50 +01:00
} ,
) ,
migrations . CreateModel (
name = ' Event ' ,
fields = [
2017-07-18 15:37:13 +02:00
( ' id ' , models . AutoField ( auto_created = True , primary_key = True , serialize = False , verbose_name = ' ID ' ) ) ,
( ' title ' , models . CharField ( max_length = 200 , verbose_name = " nom de l ' évènement " ) ) ,
2017-08-12 14:54:45 +02:00
( ' slug ' , models . SlugField ( help_text = " Seulement des lettres, des chiffres ou les caractères ' _ ' ou ' - ' . " , unique = True , verbose_name = ' identificateur ' ) ) ,
( ' created_at ' , models . DateTimeField ( auto_now_add = True , verbose_name = ' date de création ' ) ) ,
2017-07-18 15:37:13 +02:00
( ' description ' , models . TextField ( verbose_name = ' description ' ) ) ,
2018-08-06 09:52:56 +02:00
( ' beginning_date ' , models . DateTimeField ( help_text = " date publique de l ' évènement " , verbose_name = ' date de début ' ) ) ,
( ' ending_date ' , models . DateTimeField ( help_text = " date publique de l ' évènement " , verbose_name = ' date de fin ' ) ) ,
2017-08-12 14:54:45 +02:00
( ' created_by ' , 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 ' ) ) ,
2017-02-21 21:16:50 +01:00
] ,
options = {
2017-07-18 18:41:44 +02:00
' verbose_name ' : ' évènement ' ,
2017-07-21 16:20:39 +02:00
' verbose_name_plural ' : ' évènements ' ,
2017-02-21 21:16:50 +01:00
} ,
) ,
migrations . CreateModel (
name = ' Place ' ,
fields = [
( ' id ' , models . AutoField ( auto_created = True , primary_key = True , serialize = False , verbose_name = ' ID ' ) ) ,
2017-07-18 15:37:13 +02:00
( ' name ' , models . CharField ( max_length = 200 , verbose_name = ' nom du lieu ' ) ) ,
2017-02-21 21:16:50 +01:00
( ' description ' , models . TextField ( blank = True ) ) ,
2017-08-12 14:54:45 +02:00
( ' event ' , 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 ' ) ) ,
2017-02-21 21:16:50 +01:00
] ,
options = {
2017-07-18 18:41:44 +02:00
' verbose_name ' : ' lieu ' ,
2017-07-21 16:20:39 +02:00
' verbose_name_plural ' : ' lieux ' ,
2017-02-21 21:16:50 +01:00
} ,
) ,
migrations . AddField (
model_name = ' activitytemplate ' ,
name = ' event ' ,
2017-08-12 14:54:45 +02:00
field = models . ForeignKey ( editable = False , on_delete = django . db . models . deletion . CASCADE , to = ' event.Event ' , verbose_name = ' évènement ' ) ,
2017-02-21 21:16:50 +01:00
) ,
migrations . AddField (
model_name = ' activitytemplate ' ,
2017-08-12 14:54:45 +02:00
name = ' places ' ,
field = models . ManyToManyField ( blank = True , to = ' event.Place ' , verbose_name = ' lieux ' ) ,
2017-02-21 21:16:50 +01:00
) ,
migrations . AddField (
model_name = ' activitytemplate ' ,
name = ' tags ' ,
2017-08-12 14:54:45 +02:00
field = models . ManyToManyField ( blank = True , to = ' event.ActivityTag ' , verbose_name = ' tags ' ) ,
2017-07-18 18:41:44 +02:00
) ,
2017-07-18 19:08:09 +02:00
migrations . AddField (
model_name = ' activitytag ' ,
name = ' event ' ,
2017-08-12 14:54:45 +02:00
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 ' ) ,
2017-07-18 19:08:09 +02:00
) ,
2017-07-18 18:41:44 +02:00
migrations . AddField (
model_name = ' activity ' ,
name = ' event ' ,
2017-08-12 14:54:45 +02:00
field = models . ForeignKey ( editable = False , on_delete = django . db . models . deletion . CASCADE , to = ' event.Event ' , verbose_name = ' évènement ' ) ,
2017-02-21 21:16:50 +01:00
) ,
migrations . AddField (
model_name = ' activity ' ,
name = ' parent ' ,
2017-08-12 14:54:45 +02:00
field = models . ForeignKey ( blank = True , null = True , on_delete = django . db . models . deletion . PROTECT , related_name = ' children ' , to = ' event.ActivityTemplate ' , verbose_name = ' template ' ) ,
2017-02-21 21:16:50 +01:00
) ,
2017-07-18 18:41:44 +02:00
migrations . AddField (
model_name = ' activity ' ,
2017-08-12 14:54:45 +02:00
name = ' places ' ,
field = models . ManyToManyField ( blank = True , to = ' event.Place ' , verbose_name = ' lieux ' ) ,
2017-07-18 18:41:44 +02:00
) ,
2017-02-21 21:16:50 +01:00
migrations . AddField (
model_name = ' activity ' ,
name = ' staff ' ,
2017-08-12 14:54:45 +02:00
field = models . ManyToManyField ( blank = True , related_name = ' in_perm_activities ' , to = settings . AUTH_USER_MODEL , verbose_name = ' permanents ' ) ,
2017-02-21 21:16:50 +01:00
) ,
2017-07-18 18:41:44 +02:00
migrations . AddField (
model_name = ' activity ' ,
name = ' tags ' ,
2017-08-12 14:54:45 +02:00
field = models . ManyToManyField ( blank = True , to = ' event.ActivityTag ' , verbose_name = ' tags ' ) ,
2017-07-18 18:41:44 +02:00
) ,
2017-02-21 21:16:50 +01:00
]