From eebf9e81f5b79d3a9f57a2067577d44aad627a95 Mon Sep 17 00:00:00 2001
From: Christopher Neugebauer <chrisjrn@gmail.com>
Date: Thu, 31 Mar 2016 14:45:39 +1100
Subject: [PATCH] =?UTF-8?q?Resolves=20#3=20=E2=80=94=20start=5Ftime,=20end?=
 =?UTF-8?q?=5Ftime,=20and=20limit=20can=20now=20be=20blank.=20Tests=20alre?=
 =?UTF-8?q?ady=20dealt=20with=20the=20null=20case.?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../migrations/0010_auto_20160330_2342.py     | 29 +++++++++++++++++++
 registrasion/models.py                        |  3 ++
 2 files changed, 32 insertions(+)
 create mode 100644 registrasion/migrations/0010_auto_20160330_2342.py

diff --git a/registrasion/migrations/0010_auto_20160330_2342.py b/registrasion/migrations/0010_auto_20160330_2342.py
new file mode 100644
index 00000000..f689504b
--- /dev/null
+++ b/registrasion/migrations/0010_auto_20160330_2342.py
@@ -0,0 +1,29 @@
+# -*- coding: utf-8 -*-
+from __future__ import unicode_literals
+
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+
+    dependencies = [
+        ('registrasion', '0009_auto_20160330_2336'),
+    ]
+
+    operations = [
+        migrations.AlterField(
+            model_name='timeorstocklimitenablingcondition',
+            name='end_time',
+            field=models.DateTimeField(help_text='Products included in this condition will only be available before this time.', null=True, blank=True),
+        ),
+        migrations.AlterField(
+            model_name='timeorstocklimitenablingcondition',
+            name='limit',
+            field=models.PositiveIntegerField(help_text='The number of items under this grouping that can be purchased.', null=True, blank=True),
+        ),
+        migrations.AlterField(
+            model_name='timeorstocklimitenablingcondition',
+            name='start_time',
+            field=models.DateTimeField(help_text='Products included in this condition will only be available after this time.', null=True, blank=True),
+        ),
+    ]
diff --git a/registrasion/models.py b/registrasion/models.py
index 5887394c..c841ffae 100644
--- a/registrasion/models.py
+++ b/registrasion/models.py
@@ -441,16 +441,19 @@ class TimeOrStockLimitEnablingCondition(EnablingConditionBase):
 
     start_time = models.DateTimeField(
         null=True,
+        blank=True,
         help_text=_("Products included in this condition will only be "
                     "available after this time."),
     )
     end_time = models.DateTimeField(
         null=True,
+        blank=True,
         help_text=_("Products included in this condition will only be "
                     "available before this time."),
     )
     limit = models.PositiveIntegerField(
         null=True,
+        blank=True,
         help_text=_("The number of items under this grouping that can be "
                     "purchased."),
     )