Project

General

Profile

Download (1.74 KB) Statistics
| Branch: | Tag: | Revision:

root / uauth / organization / migrations / 0002_auto_20150424_1858.py @ 64438aee

1
# -*- coding: utf-8 -*-
2
from __future__ import unicode_literals
3

    
4
from django.db import models, migrations
5

    
6

    
7
class Migration(migrations.Migration):
8

    
9
    dependencies = [
10
        ('organization', '0001_initial'),
11
    ]
12

    
13
    operations = [
14
        migrations.CreateModel(
15
            name='LocalAccount',
16
            fields=[
17
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
18
                ('username', models.CharField(max_length=128, verbose_name='Username')),
19
                ('first_name', models.CharField(max_length=64, null=True, verbose_name='First name', blank=True)),
20
                ('last_name', models.CharField(max_length=64, null=True, verbose_name='Last name', blank=True)),
21
                ('creation_date', models.DateTimeField(auto_now_add=True)),
22
                ('expiration_date', models.DateTimeField(null=True, blank=True)),
23
                ('password', models.CharField(help_text='Leave empty to auto-generate', max_length=128, verbose_name='Password', blank=True)),
24
                ('description', models.TextField(null=True, verbose_name='Description', blank=True)),
25
                ('active', models.BooleanField(default=True, verbose_name='Active')),
26
                ('organization', models.ForeignKey(to='organization.Organization')),
27
            ],
28
            options={
29
            },
30
            bases=(models.Model,),
31
        ),
32
        migrations.RemoveField(
33
            model_name='temporaryaccount',
34
            name='organization',
35
        ),
36
        migrations.DeleteModel(
37
            name='TemporaryAccount',
38
        ),
39
        migrations.AlterUniqueTogether(
40
            name='localaccount',
41
            unique_together=set([('organization', 'username')]),
42
        ),
43
    ]
(2-2/3)