From 37761d9b82237c49d0ef1d240750f260db2ea406 Mon Sep 17 00:00:00 2001
From: c0de <c0de@c0defox.es>
Date: Thu, 1 Jun 2017 21:31:43 -0500
Subject: [PATCH] Allow deactivated to be null

---
 core/migrations/0004_auto_20170602_0146.py | 20 ++++++++++++++++++++
 core/models.py                             |  2 +-
 2 files changed, 21 insertions(+), 1 deletion(-)
 create mode 100644 core/migrations/0004_auto_20170602_0146.py

diff --git a/core/migrations/0004_auto_20170602_0146.py b/core/migrations/0004_auto_20170602_0146.py
new file mode 100644
index 0000000..9c7547c
--- /dev/null
+++ b/core/migrations/0004_auto_20170602_0146.py
@@ -0,0 +1,20 @@
+# -*- coding: utf-8 -*-
+# Generated by Django 1.11.1 on 2017-06-02 01:46
+from __future__ import unicode_literals
+
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+
+    dependencies = [
+        ('core', '0003_auto_20170602_0130'),
+    ]
+
+    operations = [
+        migrations.AlterField(
+            model_name='api_owners',
+            name='date_deactivated',
+            field=models.DateField(blank=True),
+        ),
+    ]
diff --git a/core/models.py b/core/models.py
index ce3d0fd..2fecd9c 100644
--- a/core/models.py
+++ b/core/models.py
@@ -12,7 +12,7 @@ class api_owners(models.Model):
 	# Users who are allowed to have an API app
 	user = models.OneToOneField(User, unique=True, blank=False)
 	date_added = models.DateField(blank=False)
-	date_deactivated = models.DateField()
+	date_deactivated = models.DateField(blank=True)
 	active = models.BooleanField(blank=False)
 
 	def __str__(self):