Permalink
Browse files

Remove markitup

  • Loading branch information...
1 parent 8fd371b commit b313f1d22e14679b4a27cbc160249f7c9c43d547 @paltman paltman committed Aug 10, 2012
Showing with 3 additions and 11 deletions.
  1. +2 −3 boxes/models.py
  2. +1 −7 boxes/templates/box.html
  3. +0 −1 setup.py
View
@@ -6,13 +6,11 @@
import reversion
-from markitup.fields import MarkupField
-
class Box(models.Model):
label = models.CharField(max_length=100, db_index=True)
- content = MarkupField(blank=True)
+ content = models.TextField(blank=True)
created_by = models.ForeignKey(User, related_name="boxes")
last_updated_by = models.ForeignKey(User, related_name="updated_boxes")
@@ -23,4 +21,5 @@ def __unicode__(self):
class Meta:
verbose_name_plural = "boxes"
+
reversion.register(Box)
View
@@ -1,4 +1,3 @@
-{% load markitup_tags %}
{% load i18n %}
{% if form %}
@@ -11,13 +10,8 @@
<div class="modal-body">
{% csrf_token %}
{{ form.content }}
-
- {% markitup_editor form.content.auto_id %}
-
</div>
- <div class="modal-footer">
- <div class="pull-left">Content is processed using <a href="http://daringfireball.net/projects/markdown/syntax" target="_blank">Markdown</a></div>
- <a href="#" class="btn" data-dismiss="modal">Close</a>
+ <div class="form-actions">
<button type="submit" class="btn btn-primary">Save changes</a>
</div>
</form>
View
@@ -11,7 +11,6 @@
license = "BSD",
url = "http://github.com/eldarion/boxes",
install_requires = [
- "django-markitup",
"django-reversion",
],
packages = [

0 comments on commit b313f1d

Please sign in to comment.