Matěj Kocián
9 years ago
3 changed files with 118 additions and 2 deletions
@ -0,0 +1,34 @@ |
|||
# -*- coding: utf-8 -*- |
|||
from __future__ import unicode_literals |
|||
|
|||
from django.db import migrations, models |
|||
import django.utils.timezone |
|||
from django.conf import settings |
|||
|
|||
|
|||
class Migration(migrations.Migration): |
|||
|
|||
dependencies = [ |
|||
migrations.swappable_dependency(settings.AUTH_USER_MODEL), |
|||
('seminar', '0038_change_meta_prispevek'), |
|||
] |
|||
|
|||
operations = [ |
|||
migrations.CreateModel( |
|||
name='Pohadka', |
|||
fields=[ |
|||
('id', models.AutoField(serialize=False, primary_key=True)), |
|||
('text', models.TextField(verbose_name='Text poh\xe1dky')), |
|||
('pred', models.BooleanField(default=True, verbose_name='P\u0159ed \xfalohou')), |
|||
('timestamp', models.DateTimeField(default=django.utils.timezone.now, verbose_name='Vytvo\u0159eno', editable=False, blank=True)), |
|||
('autor', models.ForeignKey(verbose_name=b'Autor poh\xc3\xa1dky', to=settings.AUTH_USER_MODEL)), |
|||
('uloha', models.ForeignKey(related_name='pohadky', verbose_name='\xdaloha', to='seminar.Problem')), |
|||
], |
|||
options={ |
|||
'ordering': ['uloha__cislo_zadani', 'uloha__kod', '-pred'], |
|||
'db_table': 'seminar_pohadky', |
|||
'verbose_name': 'Poh\xe1dka', |
|||
'verbose_name_plural': 'Poh\xe1dky', |
|||
}, |
|||
), |
|||
] |
Loading…
Reference in new issue