Revision f6b8df5f
Added by Serghei Mihai over 9 years ago
corbo/models.py | ||
---|---|---|
3 | 3 |
from django.db import models |
4 | 4 |
from django.utils.translation import ugettext_lazy as _ |
5 | 5 |
|
6 |
from ckeditor.fields import RichTextField |
|
7 |
|
|
6 | 8 |
class Category(models.Model): |
7 | 9 |
name = models.CharField(max_length=64, blank=False, null=False) |
8 | 10 |
ctime = models.DateTimeField(auto_now_add=True) |
... | ... | |
13 | 15 |
class Announce(models.Model): |
14 | 16 |
title = models.CharField(_('title'), max_length=256, |
15 | 17 |
help_text=_('maximum 256 characters')) |
16 |
text = models.TextField(_('text'))
|
|
18 |
text = RichTextField(_('Content'))
|
|
17 | 19 |
publication_time = models.DateTimeField(_('publication time'), blank=True, |
18 | 20 |
null=True, default=timezone.now) |
19 | 21 |
expiration_time = models.DateTimeField(_('expiration time'), blank=True, |
Also available in: Unified diff
RichTextField used to edit announce content