Jonas Havelka
1 year ago
5 changed files with 278 additions and 5 deletions
@ -0,0 +1,25 @@ |
|||||
|
# Generated by Django 2.2.28 on 2023-08-09 19:30 |
||||
|
|
||||
|
from django.db import migrations, models |
||||
|
import django.db.models.deletion |
||||
|
|
||||
|
|
||||
|
class Migration(migrations.Migration): |
||||
|
|
||||
|
dependencies = [ |
||||
|
('galerie', '0010_auto_20200819_0947'), |
||||
|
('soustredeni', '0001_initial'), |
||||
|
] |
||||
|
|
||||
|
operations = [ |
||||
|
migrations.SeparateDatabaseAndState( |
||||
|
state_operations=[ |
||||
|
migrations.AlterField( |
||||
|
model_name='galerie', |
||||
|
name='soustredeni', |
||||
|
field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, to='soustredeni.Soustredeni'), |
||||
|
), |
||||
|
], |
||||
|
database_operations=[], |
||||
|
), |
||||
|
] |
@ -0,0 +1,25 @@ |
|||||
|
# Generated by Django 2.2.28 on 2023-08-09 19:30 |
||||
|
|
||||
|
from django.db import migrations, models |
||||
|
import django.db.models.deletion |
||||
|
|
||||
|
|
||||
|
class Migration(migrations.Migration): |
||||
|
|
||||
|
dependencies = [ |
||||
|
('prednasky', '0013_auto_20230731_1954'), |
||||
|
('soustredeni', '0001_initial'), |
||||
|
] |
||||
|
|
||||
|
operations = [ |
||||
|
migrations.SeparateDatabaseAndState( |
||||
|
state_operations=[ |
||||
|
migrations.AlterField( |
||||
|
model_name='seznam', |
||||
|
name='soustredeni', |
||||
|
field=models.ForeignKey(default=None, null=True, on_delete=django.db.models.deletion.PROTECT, to='soustredeni.Soustredeni'), |
||||
|
), |
||||
|
], |
||||
|
database_operations=[], |
||||
|
), |
||||
|
] |
@ -0,0 +1,93 @@ |
|||||
|
# Generated by Django 2.2.28 on 2023-08-09 19:30 |
||||
|
|
||||
|
from django.db import migrations |
||||
|
|
||||
|
|
||||
|
class Migration(migrations.Migration): |
||||
|
|
||||
|
dependencies = [ |
||||
|
('prednasky', '0014_auto_20230809_2130'), |
||||
|
('galerie', '0011_auto_20230809_2130'), |
||||
|
('seminar', '0116_separace_odevzdavatka'), |
||||
|
] |
||||
|
|
||||
|
operations = [ |
||||
|
migrations.SeparateDatabaseAndState( |
||||
|
state_operations=[ |
||||
|
migrations.RemoveField( |
||||
|
model_name='konfery_ucastnici', |
||||
|
name='konfera', |
||||
|
), |
||||
|
migrations.RemoveField( |
||||
|
model_name='konfery_ucastnici', |
||||
|
name='resitel', |
||||
|
), |
||||
|
migrations.RemoveField( |
||||
|
model_name='soustredeni', |
||||
|
name='organizatori', |
||||
|
), |
||||
|
migrations.RemoveField( |
||||
|
model_name='soustredeni', |
||||
|
name='rocnik', |
||||
|
), |
||||
|
migrations.RemoveField( |
||||
|
model_name='soustredeni', |
||||
|
name='ucastnici', |
||||
|
), |
||||
|
migrations.RemoveField( |
||||
|
model_name='soustredeni_organizatori', |
||||
|
name='organizator', |
||||
|
), |
||||
|
migrations.RemoveField( |
||||
|
model_name='soustredeni_organizatori', |
||||
|
name='soustredeni', |
||||
|
), |
||||
|
migrations.RemoveField( |
||||
|
model_name='soustredeni_ucastnici', |
||||
|
name='resitel', |
||||
|
), |
||||
|
migrations.RemoveField( |
||||
|
model_name='soustredeni_ucastnici', |
||||
|
name='soustredeni', |
||||
|
), |
||||
|
], |
||||
|
database_operations=[], |
||||
|
), |
||||
|
migrations.SeparateDatabaseAndState( |
||||
|
state_operations=[ |
||||
|
migrations.DeleteModel( |
||||
|
name='Konfera', |
||||
|
), |
||||
|
migrations.DeleteModel( |
||||
|
name='Konfery_Ucastnici', |
||||
|
), |
||||
|
migrations.DeleteModel( |
||||
|
name='Soustredeni', |
||||
|
), |
||||
|
migrations.DeleteModel( |
||||
|
name='Soustredeni_Organizatori', |
||||
|
), |
||||
|
migrations.DeleteModel( |
||||
|
name='Soustredeni_Ucastnici', |
||||
|
), |
||||
|
], |
||||
|
database_operations=[ |
||||
|
migrations.AlterModelTable( |
||||
|
name='Konfera', table="mam_konfera", |
||||
|
), |
||||
|
migrations.AlterModelTable( |
||||
|
name='Soustredeni', table="mam_soustredeni", |
||||
|
), |
||||
|
migrations.AlterModelTable( |
||||
|
name='Soustredeni_Ucastnici', table="mam_soustredeni_ucastnici", |
||||
|
), |
||||
|
migrations.AlterModelTable( |
||||
|
name='Soustredeni_Organizatori', table="mam_soustredeni_organizatori", |
||||
|
), |
||||
|
migrations.AlterModelTable( |
||||
|
name='Konfery_Ucastnici', table="mam_konfery_ucastnici", |
||||
|
), |
||||
|
|
||||
|
], |
||||
|
), |
||||
|
] |
@ -0,0 +1,130 @@ |
|||||
|
# Generated by Django 2.2.28 on 2023-08-09 19:30 |
||||
|
|
||||
|
from django.db import migrations, models |
||||
|
import django.db.models.deletion |
||||
|
import soustredeni.models |
||||
|
|
||||
|
|
||||
|
class Migration(migrations.Migration): |
||||
|
|
||||
|
initial = True |
||||
|
|
||||
|
dependencies = [ |
||||
|
('tvorba', '0001_initial'), |
||||
|
('personalni', '0002_organizator_osoba_prijemce_resitel_skola'), |
||||
|
('seminar', '0116_separace_odevzdavatka'), |
||||
|
] |
||||
|
|
||||
|
operations = [ |
||||
|
migrations.SeparateDatabaseAndState( |
||||
|
state_operations=[ |
||||
|
migrations.CreateModel( |
||||
|
name='Konfera', |
||||
|
fields=[ |
||||
|
('problem_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='tvorba.Problem')), |
||||
|
('anotace', models.TextField(blank=True, help_text='Popis, o čem bude konfera.', verbose_name='anotace')), |
||||
|
('abstrakt', models.TextField(blank=True, help_text='Abstrakt konfery tak, jak byl uveden ve sborníku', verbose_name='abstrakt')), |
||||
|
('typ_prezentace', models.CharField(choices=[('veletrh', 'Veletrh (postery)'), ('prezentace', 'Prezentace (přednáška)')], default='veletrh', max_length=16, verbose_name='typ prezentace')), |
||||
|
('prezentace', models.FileField(blank=True, help_text='Prezentace nebo fotka posteru', upload_to=soustredeni.models.generate_filename_konfera, verbose_name='prezentace')), |
||||
|
('materialy', models.FileField(blank=True, help_text='Další materiály ke konfeře zabalené do jednoho souboru', upload_to=soustredeni.models.generate_filename_konfera, verbose_name='materialy')), |
||||
|
], |
||||
|
options={ |
||||
|
'verbose_name': 'Konfera', |
||||
|
'verbose_name_plural': 'Konfery', |
||||
|
'db_table': 'mam_konfera', |
||||
|
}, |
||||
|
bases=('tvorba.problem',), |
||||
|
), |
||||
|
migrations.CreateModel( |
||||
|
name='Soustredeni', |
||||
|
fields=[ |
||||
|
('id', models.AutoField(primary_key=True, serialize=False)), |
||||
|
('datum_zacatku', models.DateField(blank=True, help_text='První den soustředění', null=True, verbose_name='datum začátku')), |
||||
|
('datum_konce', models.DateField(blank=True, help_text='Poslední den soustředění', null=True, verbose_name='datum konce')), |
||||
|
('verejne_db', models.BooleanField(db_column='verejne', default=False, verbose_name='soustředění zveřejněno')), |
||||
|
('misto', models.CharField(blank=True, default='', help_text='Místo (název obce, volitelně též objektu', max_length=256, verbose_name='místo soustředění')), |
||||
|
('text', models.TextField(blank=True, default='', verbose_name='text k soustředění (HTML)')), |
||||
|
('typ', models.CharField(choices=[('jarni', 'Jarní soustředění'), ('podzimni', 'Podzimní soustředění'), ('vikend', 'Víkendový sraz'), ('vylet', 'Výlet')], default='podzimni', max_length=16, verbose_name='typ akce')), |
||||
|
('exportovat', models.BooleanField(db_column='exportovat', default=False, help_text='Exportuje se jen podle tohoto flagu (ne veřejnosti)', verbose_name='export do AESOPa')), |
||||
|
], |
||||
|
options={ |
||||
|
'verbose_name': 'Soustředění', |
||||
|
'verbose_name_plural': 'Soustředění', |
||||
|
'db_table': 'mam_soustredeni', |
||||
|
'ordering': ['-rocnik__rocnik', '-datum_zacatku'], |
||||
|
}, |
||||
|
), |
||||
|
migrations.CreateModel( |
||||
|
name='Soustredeni_Ucastnici', |
||||
|
fields=[ |
||||
|
('id', models.AutoField(primary_key=True, serialize=False)), |
||||
|
('poznamka', models.TextField(blank=True, help_text='Neveřejná poznámka k účasti (plain text)', verbose_name='neveřejná poznámka')), |
||||
|
('resitel', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='personalni.Resitel', verbose_name='řešitel')), |
||||
|
('soustredeni', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='soustredeni.Soustredeni', verbose_name='soustředění')), |
||||
|
], |
||||
|
options={ |
||||
|
'verbose_name': 'Účast na soustředění', |
||||
|
'verbose_name_plural': 'Účasti na soustředění', |
||||
|
'db_table': 'mam_soustredeni_ucastnici', |
||||
|
'ordering': ['soustredeni', 'resitel'], |
||||
|
}, |
||||
|
), |
||||
|
migrations.CreateModel( |
||||
|
name='Soustredeni_Organizatori', |
||||
|
fields=[ |
||||
|
('id', models.AutoField(primary_key=True, serialize=False)), |
||||
|
('poznamka', models.TextField(blank=True, help_text='Neveřejná poznámka k účasti organizátora (plain text)', verbose_name='neveřejná poznámka')), |
||||
|
('organizator', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='personalni.Organizator', verbose_name='organizátor')), |
||||
|
('soustredeni', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='soustredeni.Soustredeni', verbose_name='soustředění')), |
||||
|
], |
||||
|
options={ |
||||
|
'verbose_name': 'Účast organizátorů na soustředění', |
||||
|
'verbose_name_plural': 'Účasti organizátorů na soustředění', |
||||
|
'db_table': 'mam_soustredeni_organizatori', |
||||
|
'ordering': ['soustredeni', 'organizator'], |
||||
|
}, |
||||
|
), |
||||
|
migrations.AddField( |
||||
|
model_name='soustredeni', |
||||
|
name='organizatori', |
||||
|
field=models.ManyToManyField(help_text='Seznam organizátorů soustředění', through='soustredeni.Soustredeni_Organizatori', to='personalni.Organizator', verbose_name='Organizátoři soustředění'), |
||||
|
), |
||||
|
migrations.AddField( |
||||
|
model_name='soustredeni', |
||||
|
name='rocnik', |
||||
|
field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='soustredeni', to='tvorba.Rocnik', verbose_name='ročník'), |
||||
|
), |
||||
|
migrations.AddField( |
||||
|
model_name='soustredeni', |
||||
|
name='ucastnici', |
||||
|
field=models.ManyToManyField(help_text='Seznam účastníků soustředění', through='soustredeni.Soustredeni_Ucastnici', to='personalni.Resitel', verbose_name='účastníci soustředění'), |
||||
|
), |
||||
|
migrations.CreateModel( |
||||
|
name='Konfery_Ucastnici', |
||||
|
fields=[ |
||||
|
('id', models.AutoField(primary_key=True, serialize=False)), |
||||
|
('poznamka', models.TextField(blank=True, help_text='Neveřejná poznámka k účasti (plain text)', verbose_name='neveřejná poznámka')), |
||||
|
('konfera', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='soustredeni.Konfera', verbose_name='konfera')), |
||||
|
('resitel', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='personalni.Resitel', verbose_name='řešitel')), |
||||
|
], |
||||
|
options={ |
||||
|
'verbose_name': 'Účast na konfeře', |
||||
|
'verbose_name_plural': 'Účasti na konfeře', |
||||
|
'db_table': 'mam_konfery_ucastnici', |
||||
|
'ordering': ['konfera', 'resitel'], |
||||
|
}, |
||||
|
), |
||||
|
migrations.AddField( |
||||
|
model_name='konfera', |
||||
|
name='soustredeni', |
||||
|
field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='konfery', to='soustredeni.Soustredeni', verbose_name='soustředění'), |
||||
|
), |
||||
|
migrations.AddField( |
||||
|
model_name='konfera', |
||||
|
name='ucastnici', |
||||
|
field=models.ManyToManyField(help_text='Seznam účastníků konfery', through='soustredeni.Konfery_Ucastnici', to='personalni.Resitel', verbose_name='účastníci konfery'), |
||||
|
), |
||||
|
], |
||||
|
database_operations=[], |
||||
|
), |
||||
|
] |
Loading…
Reference in new issue