omab / python-social-auth

Social auth made simple
http://psa.matiasaguirre.net
BSD 3-Clause "New" or "Revised" License
2.83k stars 1.09k forks source link

RemovedInDjango20Warning: on_delete will be a required arg for ForeignKey in Django 2.0. Set it to models.CASCADE on models and in existing migrations #1022

Closed ghost closed 7 years ago

ghost commented 8 years ago
/usr/local/lib/python3.5/site-packages/social/apps/django_app/default/models.py:33: RemovedInDjango20Warning: on_delete will be a required arg for ForeignKey in Django 2.0. Set it to models.CASCADE on models and in existing migrations if you want to maintain the current default behavior. See https://docs.djangoproject.com/en/1.10/ref/models/fields/#django.db.models.ForeignKey.on_delete
  user = models.ForeignKey(USER_MODEL, related_name='social_auth')
omab commented 7 years ago

I've created https://github.com/python-social-auth/social-app-django/issues/6 to track the needed work.