8af49a1020
Ce patch propose aux adhérents du COF de télécharger un calendrier dynamique (`.ics`). Il est configurable : - On peut s'abonner ou non aux événements du COF. - On peut choisir les spectacles auxquels on veut s'abonner.
40 lines
1.4 KiB
Python
40 lines
1.4 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)),
|
|
('events', models.BooleanField(default=True)),
|
|
('shows', models.ManyToManyField(to='bda.Spectacle')),
|
|
('user', models.ForeignKey(to=settings.AUTH_USER_MODEL)),
|
|
],
|
|
),
|
|
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),
|
|
),
|
|
]
|