Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

During install, syncdb fails #9

Open
alex-protean opened this issue May 22, 2018 · 1 comment
Open

During install, syncdb fails #9

alex-protean opened this issue May 22, 2018 · 1 comment

Comments

@alex-protean
Copy link

I'm following the install process in the docs, and the third step, syncdb, fails. This is the issue, but I'm not sure how to fix it:

File ".virtualenvs/test/lib/python3.6/site-packages/django_yubico/models.py", line 5, in <module>
    class YubicoKey(models.Model):
  File ".virtualenvs/test/lib/python3.6/site-packages/django_yubico/models.py", line 9, in YubicoKey
    user = models.ForeignKey(User)
TypeError: __init__() missing 1 required positional argument: 'on_delete'

I am using an extended user model, subclassing abstractuser. Could that have something to do with it?

@Frikster
Copy link

This library only supports Django 1.0 - 1.5. Django 2.0+ made on_delete mandatory. I'm assuming you were using a later version of Django since the earlier ones have security issues today.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants