Turn questions field into a text field
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
# Generated by Django 2.1.5 on 2019-03-13 14:42
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('webapp', '0053_auto_20190313_1505'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='signupform',
|
||||
name='questions',
|
||||
field=models.TextField(default='[]'),
|
||||
),
|
||||
]
|
||||
+2
-2
@@ -95,11 +95,11 @@ class SignupForm(models.Model):
|
||||
start_time = models.DateTimeField(default=timezone.now)
|
||||
end_time = models.DateTimeField(default=timezone.now)
|
||||
# question = JSONField()
|
||||
questions = models.CharField(max_length=255)
|
||||
questions = models.TextField(default="[]")
|
||||
visible = models.BooleanField(default=True)
|
||||
|
||||
def __str__(self):
|
||||
return _('Sign-up form #{}').format(self.id)
|
||||
return _('#{} {}').format(self.id, self.title)
|
||||
|
||||
class Meta:
|
||||
verbose_name = _('Signup form')
|
||||
|
||||
Reference in New Issue
Block a user