forked from DGNum/gestioCOF
a1ffb630c0
- Mark more strings for further translations - in verbose names - in the __str__ method - Turn all verbose names into lowercase - Add more verbose names - Set an ordering on gestion.EventCommentField - More database constraints on EventCommentValue - `TextField` is not nullable (https://docs.djangoproject.com/en/1.11/ref/models/fields/#null) - `unique_together` constraint on the two fk
236 lines
9.8 KiB
Python
236 lines
9.8 KiB
Python
# -*- coding: utf-8 -*-
|
|
# Generated by Django 1.11b1 on 2017-06-24 20:08
|
|
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):
|
|
|
|
dependencies = [
|
|
('gestion', '0003_events'),
|
|
]
|
|
|
|
operations = [
|
|
migrations.AlterModelOptions(
|
|
name='event',
|
|
options={'verbose_name': 'événement', 'verbose_name_plural': 'événements'},
|
|
),
|
|
migrations.AlterModelOptions(
|
|
name='eventcommentfield',
|
|
options={'verbose_name': 'champ', 'verbose_name_plural': 'champs'},
|
|
),
|
|
migrations.AlterModelOptions(
|
|
name='eventoption',
|
|
options={'verbose_name': 'option des événements', 'verbose_name_plural': 'options des événements'},
|
|
),
|
|
migrations.AlterModelOptions(
|
|
name='eventoptionchoice',
|
|
options={'verbose_name': 'choix', 'verbose_name_plural': 'choix'},
|
|
),
|
|
migrations.AlterModelOptions(
|
|
name='eventregistration',
|
|
options={'verbose_name': 'inscription', 'verbose_name_plural': 'inscriptions'},
|
|
),
|
|
migrations.AlterModelOptions(
|
|
name='profile',
|
|
options={'verbose_name': 'profil', 'verbose_name_plural': 'profils'},
|
|
),
|
|
migrations.AddField(
|
|
model_name='eventcommentfield',
|
|
name='ordering',
|
|
field=models.IntegerField(default=0, help_text='plus petit en premier, ordre alphabétique sur le nom si ambiguïté', verbose_name='ordre des champs'),
|
|
preserve_default=False,
|
|
),
|
|
migrations.AlterField(
|
|
model_name='club',
|
|
name='cotisation_frequency',
|
|
field=models.CharField(blank=True, choices=[('ANN', 'Annuel'), ('SEM', 'Semestriel'), ('COU', 'Au cours')], default='ANN', max_length=3, verbose_name='fréquence de la cotisation'),
|
|
),
|
|
migrations.AlterField(
|
|
model_name='club',
|
|
name='description',
|
|
field=models.TextField(blank=True, verbose_name='description'),
|
|
),
|
|
migrations.AlterField(
|
|
model_name='club',
|
|
name='members',
|
|
field=models.ManyToManyField(blank=True, related_name='in_clubs', through='gestion.ClubUser', to=settings.AUTH_USER_MODEL, verbose_name='membres du club'),
|
|
),
|
|
migrations.AlterField(
|
|
model_name='club',
|
|
name='name',
|
|
field=models.CharField(max_length=200, unique=True, verbose_name='nom'),
|
|
),
|
|
migrations.AlterField(
|
|
model_name='club',
|
|
name='price',
|
|
field=models.DecimalField(blank=True, decimal_places=2, default=0, max_digits=5, verbose_name='cotisation (€)'),
|
|
),
|
|
migrations.AlterField(
|
|
model_name='clubuser',
|
|
name='has_paid',
|
|
field=models.BooleanField(verbose_name='a payé sa cotisation'),
|
|
),
|
|
migrations.AlterField(
|
|
model_name='clubuser',
|
|
name='is_respo',
|
|
field=models.BooleanField(verbose_name='est responsable du club'),
|
|
),
|
|
migrations.AlterField(
|
|
model_name='event',
|
|
name='associations',
|
|
field=models.ManyToManyField(related_name='events', to='auth.Group', verbose_name='associations'),
|
|
),
|
|
migrations.AlterField(
|
|
model_name='event',
|
|
name='description',
|
|
field=models.TextField(blank=True, verbose_name='description'),
|
|
),
|
|
migrations.AlterField(
|
|
model_name='event',
|
|
name='end_date',
|
|
field=models.DateTimeField(blank=True, null=True, verbose_name="fin de l'événement"),
|
|
),
|
|
migrations.AlterField(
|
|
model_name='event',
|
|
name='image',
|
|
field=models.ImageField(blank=True, null=True, upload_to='public/imgs/events/', verbose_name='image'),
|
|
),
|
|
migrations.AlterField(
|
|
model_name='event',
|
|
name='location',
|
|
field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='gestion.Location', verbose_name='lieux'),
|
|
),
|
|
migrations.AlterField(
|
|
model_name='event',
|
|
name='old',
|
|
field=models.BooleanField(default=False, verbose_name='archiver (événement fini)'),
|
|
),
|
|
migrations.AlterField(
|
|
model_name='event',
|
|
name='registration_open',
|
|
field=models.BooleanField(default=True, verbose_name='les inscriptions sont ouvertes'),
|
|
),
|
|
migrations.AlterField(
|
|
model_name='event',
|
|
name='start_date',
|
|
field=models.DateTimeField(blank=True, null=True, verbose_name="début de l'événement"),
|
|
),
|
|
migrations.AlterField(
|
|
model_name='event',
|
|
name='title',
|
|
field=models.CharField(max_length=200, verbose_name='titre'),
|
|
),
|
|
migrations.AlterField(
|
|
model_name='eventcommentfield',
|
|
name='default',
|
|
field=models.TextField(blank=True, verbose_name='valeur par défaut'),
|
|
),
|
|
migrations.AlterField(
|
|
model_name='eventcommentfield',
|
|
name='event',
|
|
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='commentfields', to='gestion.Event', verbose_name='événement'),
|
|
),
|
|
migrations.AlterField(
|
|
model_name='eventcommentfield',
|
|
name='fieldtype',
|
|
field=models.CharField(choices=[('text', 'Texte long'), ('char', 'Texte court')], default='text', max_length=10, verbose_name='type de champ'),
|
|
),
|
|
migrations.AlterField(
|
|
model_name='eventcommentfield',
|
|
name='name',
|
|
field=models.CharField(max_length=200, verbose_name='nom du champ'),
|
|
),
|
|
migrations.AlterField(
|
|
model_name='eventcommentvalue',
|
|
name='content',
|
|
field=models.TextField(blank=True, verbose_name='contenu'),
|
|
),
|
|
migrations.AlterUniqueTogether(
|
|
name='eventcommentvalue',
|
|
unique_together=set([('commentfield', 'registration')]),
|
|
),
|
|
migrations.AlterField(
|
|
model_name='eventoption',
|
|
name='event',
|
|
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='options', to='gestion.Event', verbose_name='événement'),
|
|
),
|
|
migrations.AlterField(
|
|
model_name='eventoption',
|
|
name='multi_choices',
|
|
field=models.BooleanField(default=False, verbose_name='choix multiples'),
|
|
),
|
|
migrations.AlterField(
|
|
model_name='eventoption',
|
|
name='name',
|
|
field=models.CharField(max_length=200, verbose_name='option'),
|
|
),
|
|
migrations.AlterField(
|
|
model_name='eventoptionchoice',
|
|
name='event_option',
|
|
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='choices', to='gestion.EventOption', verbose_name='événement'),
|
|
),
|
|
migrations.AlterField(
|
|
model_name='eventregistration',
|
|
name='event',
|
|
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='gestion.Event', verbose_name='événement'),
|
|
),
|
|
migrations.AlterField(
|
|
model_name='eventregistration',
|
|
name='filledcomments',
|
|
field=models.ManyToManyField(through='gestion.EventCommentValue', to='gestion.EventCommentField', verbose_name='commentaires'),
|
|
),
|
|
migrations.AlterField(
|
|
model_name='eventregistration',
|
|
name='options',
|
|
field=models.ManyToManyField(to='gestion.EventOptionChoice', verbose_name='choix'),
|
|
),
|
|
migrations.AlterField(
|
|
model_name='eventregistration',
|
|
name='paid',
|
|
field=models.BooleanField(default=False, verbose_name='a payé'),
|
|
),
|
|
migrations.AlterField(
|
|
model_name='eventregistration',
|
|
name='user',
|
|
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL, verbose_name='utilisateur'),
|
|
),
|
|
migrations.AlterField(
|
|
model_name='location',
|
|
name='name',
|
|
field=models.CharField(max_length=200, verbose_name='nom du lieux'),
|
|
),
|
|
migrations.AlterField(
|
|
model_name='profile',
|
|
name='comments',
|
|
field=models.TextField(blank=True, verbose_name="commentaires visibles par l'utilisateur"),
|
|
),
|
|
migrations.AlterField(
|
|
model_name='profile',
|
|
name='departement',
|
|
field=models.CharField(blank=True, max_length=50, verbose_name='département'),
|
|
),
|
|
migrations.AlterField(
|
|
model_name='profile',
|
|
name='login_clipper',
|
|
field=models.CharField(blank=True, max_length=8, verbose_name='login clipper'),
|
|
),
|
|
migrations.AlterField(
|
|
model_name='profile',
|
|
name='occupation',
|
|
field=models.CharField(choices=[('exterieur', 'Extérieur'), ('1A', '1A'), ('2A', '2A'), ('3A', '3A'), ('4A', '4A'), ('archicube', 'Archicube'), ('doctorant', 'Doctorant'), ('CST', 'CST')], default='1A', max_length=9, verbose_name='occupation'),
|
|
),
|
|
migrations.AlterField(
|
|
model_name='profile',
|
|
name='phone',
|
|
field=models.CharField(blank=True, max_length=20, verbose_name='téléphone'),
|
|
),
|
|
migrations.AlterField(
|
|
model_name='profile',
|
|
name='user',
|
|
field=models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, related_name='profile', to=settings.AUTH_USER_MODEL, verbose_name='utilisateur'),
|
|
),
|
|
]
|