From 4b882e5e9584c2edc3762e87694e07c970f20e6e Mon Sep 17 00:00:00 2001
From: Jorran de Wit <jorrandewit@outlook.com>
Date: Wed, 13 Sep 2017 13:39:31 +0200
Subject: [PATCH] Debug take 2

---
 news/migrations/0004_auto_20170913_1339.py | 27 ++++++++++++++++++++++
 news/models.py                             |  4 ++--
 2 files changed, 29 insertions(+), 2 deletions(-)
 create mode 100644 news/migrations/0004_auto_20170913_1339.py

diff --git a/news/migrations/0004_auto_20170913_1339.py b/news/migrations/0004_auto_20170913_1339.py
new file mode 100644
index 000000000..05a43bd4f
--- /dev/null
+++ b/news/migrations/0004_auto_20170913_1339.py
@@ -0,0 +1,27 @@
+# -*- coding: utf-8 -*-
+# Generated by Django 1.11.4 on 2017-09-13 11:39
+from __future__ import unicode_literals
+
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+
+    dependencies = [
+        ('news', '0003_auto_20170812_0043'),
+    ]
+
+    operations = [
+        migrations.AlterField(
+            model_name='newsitem',
+            name='followup_link',
+            field=models.URLField(blank=True, default=''),
+            preserve_default=False,
+        ),
+        migrations.AlterField(
+            model_name='newsitem',
+            name='followup_link_text',
+            field=models.CharField(blank=True, default='', max_length=300),
+            preserve_default=False,
+        ),
+    ]
diff --git a/news/models.py b/news/models.py
index 5179895c5..0ead952d1 100644
--- a/news/models.py
+++ b/news/models.py
@@ -8,8 +8,8 @@ class NewsItem(models.Model):
     date = models.DateField()
     headline = models.CharField(max_length=300)
     blurb = models.TextField()
-    followup_link = models.URLField(blank=True, null=True)
-    followup_link_text = models.CharField(max_length=300, blank=True, null=True)
+    followup_link = models.URLField(blank=True)
+    followup_link_text = models.CharField(max_length=300, blank=True)
     on_homepage = models.BooleanField(default=True)
 
     objects = NewsManager()
-- 
GitLab