Commits

Gregory Petukhov  committed 5895916

Replace ckeditor with tinymce editor

  • Participants
  • Parent commits fcd068a

Comments (0)

Files changed (1)

File article/models.py

 # -*- coding: utf-8 -*-
 from datetime import datetime
 from south.modelsinspector import add_introspection_rules
-from ckeditor.fields import RichTextField
+from tinymce.models import HTMLField
 
 from django.db import models
 from django.core.urlresolvers import reverse
     title = models.CharField(max_length=255)
     slug = models.SlugField(max_length=255, blank=False, default=None)
     category = models.ForeignKey('article.Category', related_name='articles')
-    teaser = RichTextField(blank=True)
-    content = RichTextField()
+    teaser = HTMLField(blank=True)
+    content = HTMLField()
     image = models.ImageField(blank=True,
             upload_to='upload/article/article_image')
     meta_keywords = models.CharField(max_length=255, blank=True)