Tagy (MFIO) k problemum
This commit is contained in:
parent
dcdaa57401
commit
1a6000f0e2
4 changed files with 27 additions and 0 deletions
|
@ -98,6 +98,7 @@ INSTALLED_APPS = (
|
|||
'django_countries',
|
||||
'solo',
|
||||
'ckeditor',
|
||||
'taggit',
|
||||
|
||||
# MaMweb
|
||||
'mamweb',
|
||||
|
|
|
@ -18,6 +18,7 @@ django-countries==3.2
|
|||
django-solo==1.1.0
|
||||
django-ckeditor==4.4.7
|
||||
django-admin-tools==0.5.2
|
||||
django-taggit==0.14.0
|
||||
|
||||
# debug tools/extensions
|
||||
|
||||
|
|
22
seminar/migrations/0007_problem_zamereni.py
Normal file
22
seminar/migrations/0007_problem_zamereni.py
Normal file
|
@ -0,0 +1,22 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import models, migrations
|
||||
import taggit.managers
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('taggit', '0001_initial'),
|
||||
('seminar', '0006_problem_add_timestamp'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='problem',
|
||||
name='zamereni',
|
||||
field=taggit.managers.TaggableManager(to='taggit.Tag', through='taggit.TaggedItem', blank=True, help_text=b'Zam\xc4\x9b\xc5\x99en\xc3\xad M/F/I/O probl\xc3\xa9mu, p\xc5\x99\xc3\xadp. dal\xc5\xa1\xc3\xad tagy', verbose_name='zam\u011b\u0159en\xed'),
|
||||
preserve_default=True,
|
||||
),
|
||||
]
|
|
@ -14,6 +14,7 @@ from django.core.urlresolvers import reverse
|
|||
|
||||
from django_countries.fields import CountryField
|
||||
from solo.models import SingletonModel
|
||||
from taggit.managers import TaggableManager
|
||||
|
||||
import reversion
|
||||
|
||||
|
@ -310,6 +311,8 @@ class Problem(SeminarModelBase):
|
|||
]
|
||||
stav = models.CharField(u'stav problému', max_length=32, choices=STAV_CHOICES, blank=False, default=STAV_NAVRH)
|
||||
|
||||
zamereni = TaggableManager(verbose_name=u'zaměření', help_text='Zaměření M/F/I/O problému, příp. další tagy', blank=True)
|
||||
|
||||
text_problemu_org = models.TextField(u'organizátorský (neveřejný) text', blank=True)
|
||||
|
||||
text_problemu = models.TextField(u'veřejný text zadání a řešení', blank=True)
|
||||
|
|
Loading…
Reference in a new issue