X-Git-Url: https://git.mdrn.pl/django-cas-provider.git/blobdiff_plain/38e127a205b49ab137d554895d426cb8e7dcd785..b88bb747c08269f187d6073504c7dca3568112b9:/cas_provider/migrations/0001_initial.py?ds=inline diff --git a/cas_provider/migrations/0001_initial.py b/cas_provider/migrations/0001_initial.py index 6622ec5..160eab5 100644 --- a/cas_provider/migrations/0001_initial.py +++ b/cas_provider/migrations/0001_initial.py @@ -45,7 +45,7 @@ class Migration(migrations.Migration): ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)), ('ticket', models.CharField(max_length=32, verbose_name='ticket')), ('created', models.DateTimeField(auto_now=True, verbose_name='created')), - ('proxyGrantingTicket', models.ForeignKey(verbose_name='Proxy Granting Ticket', to='cas_provider.ProxyGrantingTicket')), + ('proxyGrantingTicket', models.ForeignKey(verbose_name='Proxy Granting Ticket', to='cas_provider.ProxyGrantingTicket', on_delete=models.CASCADE)), ], options={ 'verbose_name': 'Proxy Granting Ticket IOU', @@ -70,8 +70,8 @@ class Migration(migrations.Migration): migrations.CreateModel( name='ProxyTicket', fields=[ - ('serviceticket_ptr', models.OneToOneField(parent_link=True, auto_created=True, primary_key=True, serialize=False, to='cas_provider.ServiceTicket')), - ('proxyGrantingTicket', models.ForeignKey(verbose_name='Proxy Granting Ticket', to='cas_provider.ProxyGrantingTicket')), + ('serviceticket_ptr', models.OneToOneField(parent_link=True, auto_created=True, primary_key=True, serialize=False, to='cas_provider.ServiceTicket', on_delete=models.CASCADE)), + ('proxyGrantingTicket', models.ForeignKey(verbose_name='Proxy Granting Ticket', to='cas_provider.ProxyGrantingTicket', on_delete=models.CASCADE)), ], options={ 'verbose_name': 'Proxy Ticket', @@ -82,13 +82,13 @@ class Migration(migrations.Migration): migrations.AddField( model_name='serviceticket', name='user', - field=models.ForeignKey(verbose_name='user', to=settings.AUTH_USER_MODEL), + field=models.ForeignKey(verbose_name='user', to=settings.AUTH_USER_MODEL, on_delete=models.CASCADE), preserve_default=True, ), migrations.AddField( model_name='proxygrantingticket', name='serviceTicket', - field=models.ForeignKey(to='cas_provider.ServiceTicket', null=True), + field=models.ForeignKey(to='cas_provider.ServiceTicket', null=True, on_delete=models.CASCADE), preserve_default=True, ), ]