b5704c7f6d
- Typos dans les modèles - Choix d'un `OneToOneField` dans `CalendarSubscription` - Suppressions d'un `except` catch-all - Amélioration de la vue calendar
44 lines
1.6 KiB
Python
44 lines
1.6 KiB
Python
# -*- coding: utf-8 -*-
|
|
from __future__ import unicode_literals
|
|
|
|
from django.db import migrations, models
|
|
from django.conf import settings
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
|
('bda', '0004_mails-rappel'),
|
|
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
|
|
('gestioncof', '0004_registration_mail'),
|
|
]
|
|
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name='CalendarSubscription',
|
|
fields=[
|
|
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
|
|
('subscribe_to_events', models.BooleanField(default=True)),
|
|
('shows', models.ManyToManyField(to='bda.Spectacle')),
|
|
('user', models.OneToOneField(to=settings.AUTH_USER_MODEL)),
|
|
],
|
|
),
|
|
migrations.AlterModelOptions(
|
|
name='custommail',
|
|
options={'verbose_name': 'Mail personnalisable', 'verbose_name_plural': 'Mails personnalisables'},
|
|
),
|
|
migrations.AlterModelOptions(
|
|
name='eventoptionchoice',
|
|
options={'verbose_name': 'Choix', 'verbose_name_plural': 'Choix'},
|
|
),
|
|
migrations.AlterField(
|
|
model_name='event',
|
|
name='end_date',
|
|
field=models.DateTimeField(null=True, verbose_name=b'Date de fin', blank=True),
|
|
),
|
|
migrations.AlterField(
|
|
model_name='event',
|
|
name='start_date',
|
|
field=models.DateTimeField(null=True, verbose_name=b'Date de d\xc3\xa9but', blank=True),
|
|
),
|
|
]
|