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):