diff --git a/core/models.py b/core/models.py index 91fe8e85..19d8b86b 100755 --- a/core/models.py +++ b/core/models.py @@ -5,6 +5,7 @@ from regluit.utils import crypto from datetime import timedelta from decimal import Decimal from notification import models as notification +from ckeditor.fields import RichTextField from django.db import models from django.db.models import Q, get_model @@ -177,8 +178,8 @@ class Campaign(models.Model): LICENSE_CHOICES = CCLicense.CCCHOICES created = models.DateTimeField(auto_now_add=True) name = models.CharField(max_length=500, null=True, blank=False) - description = models.TextField(null=True, blank=False) - details = models.TextField(null=True, blank=True) + description = RichTextField(null=True, blank=False) + details = RichTextField(null=True, blank=True) target = models.DecimalField(max_digits=14, decimal_places=2, null=True, blank=False) license = models.CharField(max_length=255, choices = LICENSE_CHOICES, default='CC BY-NC-ND') left = models.DecimalField(max_digits=14, decimal_places=2, null=True, blank=False) diff --git a/frontend/forms.py b/frontend/forms.py index 1eae6d56..d33a998b 100644 --- a/frontend/forms.py +++ b/frontend/forms.py @@ -221,8 +221,6 @@ def getManageCampaignForm ( instance, data=None, *args, **kwargs ): model = Campaign fields = 'description', 'details', 'license', 'target', 'deadline', 'paypal_receiver', 'edition' widgets = { - 'description': forms.Textarea(attrs={'cols': 80, 'rows': 20}), - 'details': forms.Textarea(attrs={'cols': 80, 'rows': 5}), 'deadline': SelectDateWidget, } diff --git a/frontend/templates/manage_campaign.html b/frontend/templates/manage_campaign.html index 2d8644f2..b276f23b 100644 --- a/frontend/templates/manage_campaign.html +++ b/frontend/templates/manage_campaign.html @@ -109,6 +109,7 @@ Please fix the following before launching your campaign: