Browse Source
Dodelany nektere vychytavky z nove verze oprafu. Nefunguje editace komentaru. Zamky a podobna havet neimplementovany.remotes/origin/opraf
Tomas 'Jethro' Pokorny
9 years ago
9 changed files with 176 additions and 27 deletions
@ -0,0 +1,39 @@ |
|||
# -*- coding: utf-8 -*- |
|||
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')), |
|||
], |
|||
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', |
|||
), |
|||
] |
After Width: | Height: | Size: 726 B |
After Width: | Height: | Size: 593 B |
After Width: | Height: | Size: 973 B |
Loading…
Reference in new issue