Pridana stara ID z dakosu (pro import a historii)
This commit is contained in:
parent
d1c3948a6c
commit
2270aeea51
2 changed files with 56 additions and 0 deletions
44
seminar/migrations/0004_add_old_dakos_id.py
Normal file
44
seminar/migrations/0004_add_old_dakos_id.py
Normal file
|
@ -0,0 +1,44 @@
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
from __future__ import unicode_literals
|
||||||
|
|
||||||
|
from django.db import models, migrations
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
('seminar', '0003_add_skola_zs_ss'),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.AddField(
|
||||||
|
model_name='problem',
|
||||||
|
name='dakos_id',
|
||||||
|
field=models.CharField(default=b'', help_text='DaKoS ID z exportu, s prefixem podle p\u016fvodu: "AZAD:xxx" (z MM_AZAD), "DOZ:xxx" (z MM_DOZ), "ZAD:xxx" (z MM_ZADANIA)', max_length=32, verbose_name='Star\xe9 DaKoS ID', blank=True),
|
||||||
|
preserve_default=True,
|
||||||
|
),
|
||||||
|
migrations.AddField(
|
||||||
|
model_name='resitel',
|
||||||
|
name='dakos_id',
|
||||||
|
field=models.CharField(default=b'', help_text='DaKoS ID z exportu, jen historick\xfd v\xfdznam, podle tabulky mamoper.MM_RIESITELIA', max_length=32, verbose_name='Stare DaKoS ID', blank=True),
|
||||||
|
preserve_default=True,
|
||||||
|
),
|
||||||
|
migrations.AddField(
|
||||||
|
model_name='skola',
|
||||||
|
name='dakos_id',
|
||||||
|
field=models.CharField(default=b'', help_text='DaKoS ID z exportu, jen historick\xfd v\xfdznam, podle tabulky dksroot.V_skola', max_length=32, verbose_name='Stare DaKoS ID', blank=True),
|
||||||
|
preserve_default=True,
|
||||||
|
),
|
||||||
|
migrations.AlterField(
|
||||||
|
model_name='skola',
|
||||||
|
name='je_ss',
|
||||||
|
field=models.BooleanField(default=True, verbose_name='st\u0159edn\xed stupe\u0148'),
|
||||||
|
preserve_default=True,
|
||||||
|
),
|
||||||
|
migrations.AlterField(
|
||||||
|
model_name='skola',
|
||||||
|
name='je_zs',
|
||||||
|
field=models.BooleanField(default=True, verbose_name='z\xe1kladn\xed stupe\u0148'),
|
||||||
|
preserve_default=True,
|
||||||
|
),
|
||||||
|
]
|
|
@ -63,6 +63,10 @@ class Skola(SeminarModelBase):
|
||||||
aesop_id = models.CharField(u'Aesop ID', max_length=32, blank=True, default='',
|
aesop_id = models.CharField(u'Aesop ID', max_length=32, blank=True, default='',
|
||||||
help_text=u'Aesopi ID typu "izo:..." nebo "aesop:..."')
|
help_text=u'Aesopi ID typu "izo:..." nebo "aesop:..."')
|
||||||
|
|
||||||
|
# Staré ID z DAKOSU -- jen u importovaných záznamů
|
||||||
|
dakos_id = models.CharField(u'Stare DaKoS ID', max_length=32, blank=True, default='',
|
||||||
|
help_text=u'DaKoS ID z exportu, jen historický význam, podle tabulky dksroot.V_skola')
|
||||||
|
|
||||||
# IZO školy (jen české školy)
|
# IZO školy (jen české školy)
|
||||||
izo = models.CharField(u'IZO', max_length=32, blank=True,
|
izo = models.CharField(u'IZO', max_length=32, blank=True,
|
||||||
help_text=u'IZO školy (jen české školy)')
|
help_text=u'IZO školy (jen české školy)')
|
||||||
|
@ -169,6 +173,10 @@ class Resitel(SeminarModelBase):
|
||||||
poznamka = models.TextField(u'neveřejná poznámka', blank=True,
|
poznamka = models.TextField(u'neveřejná poznámka', blank=True,
|
||||||
help_text=u'Neveřejná poznámka k řešiteli (plain text)')
|
help_text=u'Neveřejná poznámka k řešiteli (plain text)')
|
||||||
|
|
||||||
|
# Staré ID z DAKOSU -- jen u importovaných záznamů
|
||||||
|
dakos_id = models.CharField(u'Stare DaKoS ID', max_length=32, blank=True, default='',
|
||||||
|
help_text=u'DaKoS ID z exportu, jen historický význam, podle tabulky mamoper.MM_RIESITELIA')
|
||||||
|
|
||||||
def plne_jmeno(self):
|
def plne_jmeno(self):
|
||||||
return force_unicode(u'%s %s' % (self.jmeno, self.prijmeni))
|
return force_unicode(u'%s %s' % (self.jmeno, self.prijmeni))
|
||||||
|
|
||||||
|
@ -321,6 +329,10 @@ class Problem(SeminarModelBase):
|
||||||
|
|
||||||
body = models.IntegerField(u'maximum bodů', blank=True, null=True)
|
body = models.IntegerField(u'maximum bodů', blank=True, null=True)
|
||||||
|
|
||||||
|
# Staré ID z DAKOSU -- jen u importovaných záznamů
|
||||||
|
dakos_id = models.CharField(u'Staré DaKoS ID', max_length=32, blank=True, default='',
|
||||||
|
help_text=u'DaKoS ID z exportu, s prefixem podle původu: "AZAD:xxx" (z MM_AZAD), "DOZ:xxx" (z MM_DOZ), "ZAD:xxx" (z MM_ZADANIA)')
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
return force_unicode(u'%s (%s)' % (self.nazev, self.stav))
|
return force_unicode(u'%s (%s)' % (self.nazev, self.stav))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue