Change voting comment to be text instead of varchar(200)
authorMagnus Hagander <magnus@hagander.net>
Mon, 13 Aug 2018 20:23:30 +0000 (22:23 +0200)
committerMagnus Hagander <magnus@hagander.net>
Mon, 13 Aug 2018 20:23:30 +0000 (22:23 +0200)
No reason to limit it in the new interface.

postgresqleu/confreg/migrations/0026_sessionvote_comment_text.py [new file with mode: 0644]
postgresqleu/confreg/models.py

diff --git a/postgresqleu/confreg/migrations/0026_sessionvote_comment_text.py b/postgresqleu/confreg/migrations/0026_sessionvote_comment_text.py
new file mode 100644 (file)
index 0000000..3f033ad
--- /dev/null
@@ -0,0 +1,20 @@
+# -*- coding: utf-8 -*-
+# Generated by Django 1.11.10 on 2018-08-13 22:21
+from __future__ import unicode_literals
+
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+
+    dependencies = [
+        ('confreg', '0025_edit_registrations'),
+    ]
+
+    operations = [
+        migrations.AlterField(
+            model_name='conferencesessionvote',
+            name='comment',
+            field=models.TextField(blank=True, null=True),
+        ),
+    ]
index 94aa64a8ab4b6b53c60a5ed99d79944acc3dfc34..117673b3160c283350b798e91d6ca00843dfa843 100644 (file)
@@ -739,7 +739,7 @@ class ConferenceSessionVote(models.Model):
        session = models.ForeignKey(ConferenceSession, null=False, blank=False)
        voter = models.ForeignKey(User, null=False, blank=False)
        vote = models.IntegerField(null=True, blank=False)
-       comment = models.CharField(max_length=200, null=True, blank=True)
+       comment = models.TextField(null=True, blank=True)
 
        class Meta:
                unique_together = ( ('session', 'voter',), )