-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d412893
commit 8477085
Showing
4 changed files
with
82 additions
and
3 deletions.
There are no files selected for viewing
Binary file not shown.
62 changes: 62 additions & 0 deletions
62
umiss_project/umiss_auth/migrations/0005_auto_20170515_2101.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
# -*- coding: utf-8 -*- | ||
# Generated by Django 1.10.2 on 2017-05-15 21:01 | ||
from __future__ import unicode_literals | ||
|
||
from django.conf import settings | ||
import django.contrib.auth.models | ||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('umiss_auth', '0004_auto_20170422_2244'), | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name='MonitorUser', | ||
fields=[ | ||
('customuser_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to=settings.AUTH_USER_MODEL)), | ||
('android_token', models.CharField(max_length=512)), | ||
], | ||
options={ | ||
'abstract': False, | ||
'verbose_name_plural': 'users', | ||
'verbose_name': 'user', | ||
}, | ||
bases=('umiss_auth.customuser',), | ||
managers=[ | ||
('objects', django.contrib.auth.models.UserManager()), | ||
], | ||
), | ||
migrations.CreateModel( | ||
name='PatientUser', | ||
fields=[ | ||
('customuser_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to=settings.AUTH_USER_MODEL)), | ||
], | ||
options={ | ||
'abstract': False, | ||
'verbose_name_plural': 'users', | ||
'verbose_name': 'user', | ||
}, | ||
bases=('umiss_auth.customuser',), | ||
managers=[ | ||
('objects', django.contrib.auth.models.UserManager()), | ||
], | ||
), | ||
migrations.RemoveField( | ||
model_name='customuser', | ||
name='monitor_users', | ||
), | ||
migrations.RemoveField( | ||
model_name='customuser', | ||
name='user_type', | ||
), | ||
migrations.AddField( | ||
model_name='patientuser', | ||
name='monitor_users', | ||
field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='monitors', to=settings.AUTH_USER_MODEL), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters