cd78757244
Add/fix some field names, verbose_name, help_text, on_delete (for foreign keys), etc.
136 lines
6.1 KiB
Python
136 lines
6.1 KiB
Python
# -*- coding: utf-8 -*-
|
|
# Generated by Django 1.11.4 on 2017-08-02 23:23
|
|
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):
|
|
|
|
dependencies = [
|
|
('event', '0003_auto_20170726_1116'),
|
|
]
|
|
|
|
operations = [
|
|
migrations.RemoveField(
|
|
model_name='activity',
|
|
name='place',
|
|
),
|
|
migrations.RemoveField(
|
|
model_name='activitytemplate',
|
|
name='place',
|
|
),
|
|
migrations.AddField(
|
|
model_name='activity',
|
|
name='places',
|
|
field=models.ManyToManyField(blank=True, to='event.Place', verbose_name='lieux'),
|
|
),
|
|
migrations.AddField(
|
|
model_name='activitytemplate',
|
|
name='places',
|
|
field=models.ManyToManyField(blank=True, to='event.Place', verbose_name='lieux'),
|
|
),
|
|
migrations.AlterField(
|
|
model_name='activity',
|
|
name='description',
|
|
field=models.TextField(blank=True, help_text="Visible par tout le monde si l'événément est public.", null=True, verbose_name='description'),
|
|
),
|
|
migrations.AlterField(
|
|
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.AlterField(
|
|
model_name='activity',
|
|
name='has_perm',
|
|
field=models.NullBooleanField(verbose_name='inscription de permanents'),
|
|
),
|
|
migrations.AlterField(
|
|
model_name='activity',
|
|
name='is_public',
|
|
field=models.NullBooleanField(verbose_name='est public'),
|
|
),
|
|
migrations.AlterField(
|
|
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.AlterField(
|
|
model_name='activity',
|
|
name='remarks',
|
|
field=models.TextField(blank=True, help_text='Visible uniquement par les organisateurs.', null=True, verbose_name='remarques'),
|
|
),
|
|
migrations.AlterField(
|
|
model_name='activity',
|
|
name='staff',
|
|
field=models.ManyToManyField(blank=True, related_name='in_perm_activities', to=settings.AUTH_USER_MODEL, verbose_name='permanents'),
|
|
),
|
|
migrations.AlterField(
|
|
model_name='activity',
|
|
name='tags',
|
|
field=models.ManyToManyField(blank=True, to='event.ActivityTag', verbose_name='tags'),
|
|
),
|
|
migrations.AlterField(
|
|
model_name='activitytag',
|
|
name='color',
|
|
field=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'),
|
|
),
|
|
migrations.AlterField(
|
|
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.AlterField(
|
|
model_name='activitytag',
|
|
name='is_public',
|
|
field=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'),
|
|
),
|
|
migrations.AlterField(
|
|
model_name='activitytemplate',
|
|
name='description',
|
|
field=models.TextField(blank=True, help_text="Visible par tout le monde si l'événément est public.", null=True, verbose_name='description'),
|
|
),
|
|
migrations.AlterField(
|
|
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.AlterField(
|
|
model_name='activitytemplate',
|
|
name='has_perm',
|
|
field=models.NullBooleanField(verbose_name='inscription de permanents'),
|
|
),
|
|
migrations.AlterField(
|
|
model_name='activitytemplate',
|
|
name='is_public',
|
|
field=models.NullBooleanField(verbose_name='est public'),
|
|
),
|
|
migrations.AlterField(
|
|
model_name='activitytemplate',
|
|
name='remarks',
|
|
field=models.TextField(blank=True, help_text='Visible uniquement par les organisateurs.', null=True, verbose_name='remarques'),
|
|
),
|
|
migrations.AlterField(
|
|
model_name='activitytemplate',
|
|
name='tags',
|
|
field=models.ManyToManyField(blank=True, to='event.ActivityTag', verbose_name='tags'),
|
|
),
|
|
migrations.AlterField(
|
|
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.AlterField(
|
|
model_name='event',
|
|
name='slug',
|
|
field=models.SlugField(help_text="Seulement des lettres, des chiffres ou les caractères '_' ou '-'.", unique=True, verbose_name='identificateur'),
|
|
),
|
|
migrations.AlterField(
|
|
model_name='place',
|
|
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'),
|
|
),
|
|
]
|