1 # -*- coding: utf-8 -*-
2 from __future__ import unicode_literals
4 from django.db import models, migrations
5 from django.conf import settings
8 class Migration(migrations.Migration):
11 migrations.swappable_dependency(settings.AUTH_USER_MODEL),
15 migrations.CreateModel(
18 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
19 ('ticket', models.CharField(max_length=32, verbose_name='ticket')),
20 ('created', models.DateTimeField(auto_now=True, verbose_name='created')),
23 'verbose_name': 'Login Ticket',
24 'verbose_name_plural': 'Login Tickets',
26 bases=(models.Model,),
28 migrations.CreateModel(
29 name='ProxyGrantingTicket',
31 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
32 ('ticket', models.CharField(max_length=32, verbose_name='ticket')),
33 ('created', models.DateTimeField(auto_now=True, verbose_name='created')),
34 ('pgtiou', models.CharField(max_length=256, verbose_name='PGTiou')),
37 'verbose_name': 'Proxy Granting Ticket',
38 'verbose_name_plural': 'Proxy Granting Tickets',
40 bases=(models.Model,),
42 migrations.CreateModel(
43 name='ProxyGrantingTicketIOU',
45 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
46 ('ticket', models.CharField(max_length=32, verbose_name='ticket')),
47 ('created', models.DateTimeField(auto_now=True, verbose_name='created')),
48 ('proxyGrantingTicket', models.ForeignKey(verbose_name='Proxy Granting Ticket', to='cas_provider.ProxyGrantingTicket', on_delete=models.CASCADE)),
51 'verbose_name': 'Proxy Granting Ticket IOU',
52 'verbose_name_plural': 'Proxy Granting Tickets IOU',
54 bases=(models.Model,),
56 migrations.CreateModel(
59 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
60 ('ticket', models.CharField(max_length=32, verbose_name='ticket')),
61 ('created', models.DateTimeField(auto_now=True, verbose_name='created')),
62 ('service', models.URLField(verbose_name='service')),
65 'verbose_name': 'Service Ticket',
66 'verbose_name_plural': 'Service Tickets',
68 bases=(models.Model,),
70 migrations.CreateModel(
73 ('serviceticket_ptr', models.OneToOneField(parent_link=True, auto_created=True, primary_key=True, serialize=False, to='cas_provider.ServiceTicket', on_delete=models.CASCADE)),
74 ('proxyGrantingTicket', models.ForeignKey(verbose_name='Proxy Granting Ticket', to='cas_provider.ProxyGrantingTicket', on_delete=models.CASCADE)),
77 'verbose_name': 'Proxy Ticket',
78 'verbose_name_plural': 'Proxy Tickets',
80 bases=('cas_provider.serviceticket',),
83 model_name='serviceticket',
85 field=models.ForeignKey(verbose_name='user', to=settings.AUTH_USER_MODEL, on_delete=models.CASCADE),
86 preserve_default=True,
89 model_name='proxygrantingticket',
91 field=models.ForeignKey(to='cas_provider.ServiceTicket', null=True, on_delete=models.CASCADE),
92 preserve_default=True,