Allow deactivated to be null

This commit is contained in:
c0de 2017-06-01 21:31:43 -05:00
parent 68ee2c7688
commit 37761d9b82
2 changed files with 21 additions and 1 deletions

View File

@ -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),
),
]

View File

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