mirror of
https://github.com/gamaio/gama_api.git
synced 2024-12-22 02:22:40 +00:00
Allow deactivated to be null
This commit is contained in:
parent
68ee2c7688
commit
37761d9b82
20
core/migrations/0004_auto_20170602_0146.py
Normal file
20
core/migrations/0004_auto_20170602_0146.py
Normal 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),
|
||||
),
|
||||
]
|
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user