korektury | odstraneni autora CharField
Migrace autora z CharField na odkaz na Organizator Odstraneni stareho CharFieldu
This commit is contained in:
parent
66c294c920
commit
eef276f04b
2 changed files with 22 additions and 2 deletions
22
korektury/migrations/0012_delete_autor.py
Normal file
22
korektury/migrations/0012_delete_autor.py
Normal file
|
@ -0,0 +1,22 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('korektury', '0011_prevod_autora_z_charField_na_Organizator'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.RemoveField(
|
||||
model_name='komentar',
|
||||
name='autor',
|
||||
),
|
||||
migrations.RemoveField(
|
||||
model_name='oprava',
|
||||
name='autor',
|
||||
),
|
||||
]
|
|
@ -122,7 +122,6 @@ class Oprava(models.Model):
|
|||
status = models.CharField(u'stav opravy',max_length=16, choices=STATUS_CHOICES, blank=False,
|
||||
default = STATUS_K_OPRAVE)
|
||||
|
||||
autor = models.CharField(u'autor opravy',blank = True,max_length=20, help_text='Autor opravy')
|
||||
autor_org = models.ForeignKey(Organizator, blank = True,
|
||||
help_text='Autor opravy',
|
||||
null = True) # TODO odstranit prizvisko User, TODO null = False
|
||||
|
@ -153,7 +152,6 @@ class Komentar(models.Model):
|
|||
cas = models.DateTimeField(u'čas komentáře',default=timezone.now,help_text = 'Čas zadání komentáře')
|
||||
|
||||
oprava = models.ForeignKey(Oprava)
|
||||
autor = models.CharField(u'autor komentáře',blank = True,max_length=20, help_text='Autor komentáře')
|
||||
autor_org = models.ForeignKey(Organizator, blank = True,
|
||||
help_text = u'Autor komentáře',
|
||||
null = True) # TODO odstranit prizvisko User, TODO null = False
|
||||
|
|
Loading…
Reference in a new issue