Support for Django up to 3.1. Dropped support for Django<1.10 and Python<3.5.
[django-cas-provider.git] / cas_provider / migrations / 0002_auto_20140920_1644.py
index 5e50aef..244d5ae 100644 (file)
@@ -20,7 +20,7 @@ class Migration(migrations.Migration):
         migrations.AddField(
             model_name='proxygrantingticket',
             name='pgt',
         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(
             preserve_default=True,
         ),
         migrations.AddField(
@@ -32,7 +32,7 @@ class Migration(migrations.Migration):
         migrations.AddField(
             model_name='proxygrantingticket',
             name='user',
         migrations.AddField(
             model_name='proxygrantingticket',
             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=False,
         ),
     ]
             preserve_default=False,
         ),
     ]