mfogel / django-simple-email-confirmation

Simple email confirmation for django.
170 stars 68 forks source link

Make migration error (Django 2.0) #47

Closed yueyes closed 6 years ago

yueyes commented 6 years ago

I am trying to use django-simple-email-confirmation in my django project and install by pip, when I use it and trying to make migration, the following is happended:

"path\simple_email_confirmation\models.py", line 217, in EmailAddress settings.AUTH_USER_MODEL, related_name='email_address_set', TypeError: init() missing 1 required positional argument: 'on_delete'

And I fixed it by adding on_delete=models.CASCADE in simple_email_confirmation\models.py, Django 2.0 seems need to add it.

mdamien commented 6 years ago

Hi, it’s been fixed on master, thanks for your report, gonna publish it to PyPi