Web M&M
https://mam.matfyz.cz
38 lines
1.4 KiB
38 lines
1.4 KiB
from __future__ import unicode_literals
|
|
|
|
from django.db import models, migrations
|
|
import django.utils.timezone
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
|
('korektury', '0001_initial'),
|
|
]
|
|
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name='Komentar',
|
|
fields=[
|
|
('id', models.AutoField(serialize=False, primary_key=True)),
|
|
('cas', models.DateTimeField(default=django.utils.timezone.now, help_text=b'\xc4\x8cas zad\xc3\xa1n\xc3\xad koment\xc3\xa1\xc5\x99e', verbose_name='\u010das koment\xe1\u0159e')),
|
|
('autor', models.TextField(help_text=b'Autor koment\xc3\xa1\xc5\x99e', verbose_name='autor koment\xe1\u0159e', blank=True)),
|
|
('text', models.TextField(help_text=b'Text koment\xc3\xa1\xc5\x99e', verbose_name='text koment\xe1\u0159e', blank=True)),
|
|
('oprava', models.ForeignKey(to='korektury.Oprava', on_delete=models.CASCADE)),
|
|
],
|
|
options={
|
|
'ordering': ['cas'],
|
|
'db_table': 'komentare',
|
|
'verbose_name': 'Koment\xe1\u0159 k oprav\u011b',
|
|
'verbose_name_plural': 'Koment\xe1\u0159e k oprav\u011b',
|
|
},
|
|
bases=(models.Model,),
|
|
),
|
|
migrations.RemoveField(
|
|
model_name='opravakomentar',
|
|
name='oprava',
|
|
),
|
|
migrations.DeleteModel(
|
|
name='OpravaKomentar',
|
|
),
|
|
]
|
|
|