-
-
Notifications
You must be signed in to change notification settings - Fork 181
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
django 2.0, missing 1 required positional argument: 'on_delete' #76
Comments
There was a recent pull request merged into master that appeared aimed at fixing this issue and other issues related to Django 2.0 and Python 3.6.0 but it didn't seem to catch everything when I worked with it. Considering submitting another pull request for consideration myself. Not completely sure that I'm doing everything correctly but I did manage to get it working. |
Overloaded init needs to set on_delete virtual_only has been renamed to private_only django/django@c339a5a Refs furious-luke#76
virtual_only has been renamed to private_only django/django@c339a5a Refs furious-luke#76
I'm having this issue too. Getting close to another release to pypi? |
Fixed in #78 |
The issue still exists on different position of models: |
@smobbl-bobbl: We're waiting for @furious-luke to push a new version of this package. v0.1.7 should have this fix. |
File "/home/user/.virtualenvs/rola/lib/python3.5/site-packages/address/models.py", line 171, in State
country = models.ForeignKey(Country, related_name='states')
TypeError: init() missing 1 required positional argument: 'on_delete'.
Django 2.0 requires on_delete to be explicitly set. Hence using this with django 2.0 results in the above missing positional argument.
The text was updated successfully, but these errors were encountered: