Revision 7e1dec18
Added by Serghei Mihai almost 9 years ago
corbo/migrations/0003_auto_20160427_1342.py | ||
---|---|---|
1 |
# -*- coding: utf-8 -*- |
|
2 |
from __future__ import unicode_literals |
|
3 |
|
|
4 |
from django.db import models, migrations |
|
5 |
import ckeditor.fields |
|
6 |
|
|
7 |
|
|
8 |
class Migration(migrations.Migration): |
|
9 |
|
|
10 |
dependencies = [ |
|
11 |
('corbo', '0002_auto_20150127_2221'), |
|
12 |
] |
|
13 |
|
|
14 |
operations = [ |
|
15 |
migrations.AlterField( |
|
16 |
model_name='announce', |
|
17 |
name='text', |
|
18 |
field=ckeditor.fields.RichTextField(verbose_name='Content'), |
|
19 |
preserve_default=True, |
|
20 |
), |
|
21 |
migrations.AlterUniqueTogether( |
|
22 |
name='broadcast', |
|
23 |
unique_together=set([('announce', 'channel')]), |
|
24 |
), |
|
25 |
] |
corbo/models.py | ||
---|---|---|
18 | 18 |
category = models.ForeignKey('Category', verbose_name=_('category')) |
19 | 19 |
title = models.CharField(_('title'), max_length=256, |
20 | 20 |
help_text=_('maximum 256 characters')) |
21 |
text = models.TextField(_('Content'))
|
|
21 |
text = RichTextField(_('Content'))
|
|
22 | 22 |
publication_time = models.DateTimeField(_('publication time'), blank=True, |
23 | 23 |
null=True) |
24 | 24 |
expiration_time = models.DateTimeField(_('Expires on'), blank=True, |
Also available in: Unified diff
announce content is rich text field