rdegges / django-twilio

A simple library for building twilio-powered Django webapps.

Home Page:http://django-twilio.rtfd.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Resolve Django 2.0 deprecation warnings

catskul opened this issue · comments

env/local/lib/python2.7/site-packages/django_twilio/migrations/0001_initial.py:34: RemovedInDjango20Warning: on_delete will be a required arg for OneToOneField 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.9/ref/models/fields/#django.db.models.ForeignKey.on_delete
  ('user', models.OneToOneField(to=settings.AUTH_USER_MODEL)),

Django 2.0 is out now and this hasn't been fixed. I've made an issue referencing the error raised by Django 2.0 #103

master and 0.9.0 release address this. Thank you.

If you encounter any issues please re-open.