Files
django-dav-events/dav_events/migrations/0001_initial.py
2018-01-19 10:18:53 +01:00

92 lines
6.4 KiB
Python

# -*- coding: utf-8 -*-
# Generated by Django 1.11.9 on 2018-01-19 08:44
from __future__ import unicode_literals
import dav_events.models
from django.conf import settings
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
operations = [
migrations.CreateModel(
name='Event',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('created_at', models.DateTimeField(auto_now_add=True)),
('accepted', models.BooleanField(default=False)),
('accepted_at', models.DateTimeField(null=True)),
('title', models.CharField(max_length=250)),
('description', models.TextField()),
('mode', models.CharField(choices=[(b'joint', 'gemeinschaftliche Tour'), (b'supervised', 'begleitete Tour'), (b'guided', 'gef\xfchrte Tour'), (b'training', 'Kurs')], max_length=25)),
('sport', models.CharField(choices=[(b'W', 'Wanderung'), (b'S', 'Ski'), (b'M', 'Mountainbike'), (b'K', 'Klettern'), (b'B', 'Bergsteigen')], max_length=25)),
('ski_lift', models.BooleanField(default=False)),
('level', models.CharField(choices=[(b'beginner', 'Anf\xe4nger'), (b'advanced', 'Fortgeschrittene')], max_length=25)),
('first_day', models.DateField()),
('alt_first_day', models.DateField(null=True)),
('last_day', models.DateField(null=True)),
('alt_last_day', models.DateField(null=True)),
('course_topic_1', models.TextField(blank=True)),
('course_topic_2', models.TextField(blank=True)),
('course_topic_3', models.TextField(blank=True)),
('course_topic_4', models.TextField(blank=True)),
('course_topic_5', models.TextField(blank=True)),
('course_topic_6', models.TextField(blank=True)),
('course_goal_1', models.TextField(blank=True)),
('course_goal_2', models.TextField(blank=True)),
('course_goal_3', models.TextField(blank=True)),
('course_goal_4', models.TextField(blank=True)),
('course_goal_5', models.TextField(blank=True)),
('course_goal_6', models.TextField(blank=True)),
('country', models.CharField(choices=[(b'DE', 'Deutschland'), (b'AU', '\xd6sterreich'), (b'CH', 'Schweiz'), (b'FR', 'Frankreich'), (b'IT', 'Italien')], max_length=25)),
('terrain', models.CharField(choices=[(b'gym', 'Kletterhalle'), (b'crag', 'Klettergarten'), (b'submountains', 'Mittelgebirge'), (b'alpine', 'Alpin')], max_length=25)),
('location', models.CharField(max_length=250)),
('transport', models.CharField(choices=[(b'NONE', 'Keine Angabe'), (b'train', 'Bahn'), (b'bus', 'Bus'), (b'car', 'Fahrgemeinschaften'), (b'self', 'Eigenverantwortlich'), (b'OTHER', 'Anderes Verkehrsmittel (zus\xe4tzliches Feld)')], max_length=25)),
('transport_other', models.CharField(blank=True, max_length=250)),
('meeting_point', models.CharField(choices=[(b'NONE', 'Keine Angabe'), (b'dav', 'DAV Sektionszentrum'), (b'hbf', 'Hauptbahnhof Karlsruhe, vor der Buchhandlung'), (b'hbf_south', 'Hauptbahnhof Karlsruhe, S\xfcdausgang'), (b'battert', 'Battertparkplatz, Ebersteinburg'), (b'OTHER', 'Anderer Treffpunkt (zus\xe4tzliches Feld)')], max_length=25)),
('meeting_point_other', models.CharField(blank=True, max_length=250)),
('meeting_time', models.TimeField(null=True)),
('arrival_previous_day', models.BooleanField(default=False)),
('return_time', models.TimeField(null=True)),
('basecamp', models.CharField(blank=True, max_length=250)),
('accommodation', models.CharField(choices=[(b'NONE', 'Keine (t\xe4gliche Anreise)'), (b'biwi', 'Biwak'), (b'camp', 'Zelt'), (b'hut', 'Alpenvereinsh\xfctte'), (b'hotel', 'Hotel/Pension/Hostel'), (b'OTHER', 'Andere Unterkunft (zus\xe4tzliches Feld)')], max_length=25)),
('accommodation_other', models.CharField(blank=True, max_length=250)),
('meals', models.CharField(choices=[(b'NONE', 'Keine Angabe'), (b'self', 'Selbstverpflegung'), (b'hp', 'Halbpension'), (b'vp', 'Vollpension'), (b'OTHER', 'Andere Verpflegung (zus\xe4tzliches Feld)')], max_length=25)),
('meals_other', models.CharField(blank=True, max_length=250)),
('requirements', models.TextField(blank=True)),
('equipment', models.TextField(blank=True)),
('pre_meeting_1', models.DateTimeField(null=True)),
('pre_meeting_2', models.DateTimeField(null=True)),
('min_participants', models.IntegerField(default=0)),
('max_participants', models.IntegerField(default=0)),
('deadline', models.DateField(null=True)),
('trainer_firstname', models.CharField(blank=True, max_length=250)),
('trainer_familyname', models.CharField(blank=True, max_length=250)),
('trainer_email', models.EmailField(blank=True, max_length=254)),
('trainer_phone', models.CharField(blank=True, max_length=250)),
('trainer_2_fullname', models.CharField(blank=True, max_length=250)),
('trainer_2_email', models.EmailField(blank=True, max_length=254)),
('trainer_2_phone', models.CharField(blank=True, max_length=250)),
('trainer_3_fullname', models.CharField(blank=True, max_length=250)),
('trainer_3_email', models.EmailField(blank=True, max_length=254)),
('trainer_3_phone', models.CharField(blank=True, max_length=250)),
('charge', models.FloatField(default=0)),
('additional_costs', models.CharField(blank=True, max_length=250)),
('owner', models.ForeignKey(null=True, on_delete=models.SET(dav_events.models.get_ghost_user), related_name='events', to=settings.AUTH_USER_MODEL)),
],
options={
'ordering': ['first_day'],
'default_permissions': ('view', 'accept', 'edit', 'delete'),
'verbose_name': 'Veranstaltung',
'verbose_name_plural': 'Veranstaltungen',
},
),
]