Tomas Jethro Pokorny
9 years ago
2 changed files with 146 additions and 64 deletions
@ -0,0 +1,70 @@ |
|||
# -*- coding: utf-8 -*- |
|||
from __future__ import unicode_literals |
|||
|
|||
from django.db import migrations, models |
|||
import django.db.models.deletion |
|||
import seminar.models |
|||
|
|||
|
|||
class Migration(migrations.Migration): |
|||
|
|||
dependencies = [ |
|||
('seminar', '0040_pohadka_nepovinny_autor'), |
|||
] |
|||
|
|||
operations = [ |
|||
migrations.CreateModel( |
|||
name='Konfera', |
|||
fields=[ |
|||
('id', models.AutoField(serialize=False, primary_key=True)), |
|||
('nazev', models.CharField(help_text='N\xe1zev konfery', max_length=40, verbose_name='n\xe1zev konfery')), |
|||
('popis', models.TextField(help_text='Popis konfery k zobrazen\xed na webu', verbose_name='popis konfery', blank=True)), |
|||
('abstrakt', models.TextField(help_text='Abstrakt konfery tak, jak byl uveden ve sborn\xedku', verbose_name='abstrakt', blank=True)), |
|||
('org_poznamka', models.TextField(help_text='Neve\u0159ejn\xe1 pozn\xe1mka ke konfe\u0159e(plain text)', verbose_name='neve\u0159ejn\xe1 pozn\xe1mka', blank=True)), |
|||
('typ_prezentace', models.CharField(default=b'veletrh', max_length=16, verbose_name='typ prezentace', choices=[(b'veletrh', 'Veletrh (postery)'), (b'prezentace', 'Prezentace (p\u0159edn\xe1\u0161ka)')])), |
|||
('prezentace', models.FileField(help_text='Prezentace nebo fotka posteru', upload_to=seminar.models.generate_filename_konfera, verbose_name='prezentace')), |
|||
('materialy', models.FileField(help_text='Dal\u0161\xed materi\xe1ly ke konfe\u0159e zabalen\xe9 do jednoho souboru', upload_to=seminar.models.generate_filename_konfera, verbose_name='materialy')), |
|||
('organizator', models.ForeignKey(related_name='konfery', on_delete=django.db.models.deletion.SET_NULL, verbose_name='organiz\xe1tor', to='seminar.Organizator', null=True)), |
|||
], |
|||
options={ |
|||
'db_table': 'seminar_konfera', |
|||
'verbose_name': 'Konfera', |
|||
'verbose_name_plural': 'Konfery', |
|||
}, |
|||
), |
|||
migrations.CreateModel( |
|||
name='Konfery_Ucastnici', |
|||
fields=[ |
|||
('id', models.AutoField(serialize=False, primary_key=True)), |
|||
('poznamka', models.TextField(help_text='Neve\u0159ejn\xe1 pozn\xe1mka k \xfa\u010dasti (plain text)', verbose_name='neve\u0159ejn\xe1 pozn\xe1mka', blank=True)), |
|||
('konfera', models.ForeignKey(verbose_name='konfera', to='seminar.Konfera')), |
|||
('resitel', models.ForeignKey(verbose_name='\u0159e\u0161itel', to='seminar.Resitel')), |
|||
], |
|||
options={ |
|||
'ordering': ['konfera', 'resitel'], |
|||
'db_table': 'seminar_konfery_ucastnici', |
|||
'verbose_name': '\xda\u010dast na konfe\u0159e', |
|||
'verbose_name_plural': '\xda\u010dasti na konfe\u0159e', |
|||
}, |
|||
), |
|||
migrations.AlterField( |
|||
model_name='problem', |
|||
name='typ', |
|||
field=models.CharField(default=b'uloha', max_length=32, verbose_name='typ probl\xe9mu', choices=[(b'uloha', '\xdaloha'), (b'tema', 'T\xe9ma'), (b'serial', 'Seri\xe1l'), (b'konfera', 'Konfera'), (b'org-clanek', 'Organiz\xe1torsk\xfd \u010dl\xe1nek'), (b'res-clanek', '\u0158e\u0161itelsk\xfd \u010dl\xe1nek')]), |
|||
), |
|||
migrations.AddField( |
|||
model_name='konfera', |
|||
name='prispevek', |
|||
field=models.ForeignKey(related_name='konfery', on_delete=django.db.models.deletion.SET_NULL, verbose_name='p\u0159\xedsp\u011bvek do \u010d\xedsla', to='seminar.Problem', help_text='\xda\u010dastnick\xfd p\u0159\xedp\u011bvek o konfe\u0159e', null=True), |
|||
), |
|||
migrations.AddField( |
|||
model_name='konfera', |
|||
name='soustredeni', |
|||
field=models.ForeignKey(related_name='konfery', on_delete=django.db.models.deletion.SET_NULL, verbose_name='soust\u0159ed\u011bn\xed', to='seminar.Soustredeni', null=True), |
|||
), |
|||
migrations.AddField( |
|||
model_name='konfera', |
|||
name='ucastnici', |
|||
field=models.ManyToManyField(help_text='Seznam \xfa\u010dastn\xedk\u016f konfery', to='seminar.Resitel', verbose_name='\xfa\u010dastn\xedci konfery', through='seminar.Konfery_Ucastnici'), |
|||
), |
|||
] |
Loading…
Reference in new issue