Commit c721b074 authored by okhin's avatar okhin 🚴

Fixing the models for argumentarys

parent 1d0db640
Pipeline #1149 passed with stage
in 45 seconds
...@@ -24,8 +24,8 @@ class Argumentary(models.Model): ...@@ -24,8 +24,8 @@ class Argumentary(models.Model):
"""Argumentary for a campaign""" """Argumentary for a campaign"""
id = models.AutoField(primary_key=True) id = models.AutoField(primary_key=True)
campaign = models.ForeignKey(Campaign) campaign = models.ForeignKey(Campaign)
title = RichTextField(max_length=255, verbose_name=_('title'), null=True, blank=True) title = models.CharField(max_length=255, verbose_name=_('title'), null=True, blank=True)
text = models.TextField(null=True) text = RichTextField(null=True)
def __str__(self): def __str__(self):
args = {'title': self.campaign.title} args = {'title': self.campaign.title}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment