X-Git-Url: https://git.mdrn.pl/django-cas-provider.git/blobdiff_plain/2cf88a572643b5e54858f5d3b00d188b8e7230ed..462ea03416bbf361a89185922e5314ae34b2b2c9:/cas_provider/migrations/0002_auto_20140920_1644.py?ds=inline diff --git a/cas_provider/migrations/0002_auto_20140920_1644.py b/cas_provider/migrations/0002_auto_20140920_1644.py index 5948a66..244d5ae 100644 --- a/cas_provider/migrations/0002_auto_20140920_1644.py +++ b/cas_provider/migrations/0002_auto_20140920_1644.py @@ -20,7 +20,7 @@ class Migration(migrations.Migration): migrations.AddField( model_name='proxygrantingticket', name='pgt', - field=models.ForeignKey(to='cas_provider.ProxyGrantingTicket', null=True), + field=models.ForeignKey(to='cas_provider.ProxyGrantingTicket', null=True, on_delete=models.CASCADE), preserve_default=True, ), migrations.AddField( @@ -32,7 +32,7 @@ class Migration(migrations.Migration): migrations.AddField( model_name='proxygrantingticket', name='user', - field=models.ForeignKey(default=0, 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=False, ), ]