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

Update for Python 3.7 #23

Open
dcarlcf opened this issue Aug 3, 2018 · 2 comments
Open

Update for Python 3.7 #23

dcarlcf opened this issue Aug 3, 2018 · 2 comments

Comments

@dcarlcf
Copy link

dcarlcf commented Aug 3, 2018

I am building a Django backend and would love to incorporate this module. After I added it to my settings, I tried running the migration and got a syntax error:

TypeError: init() missing 1 required positional argument: 'on_delete'

From abstract models line 31:

File "/Users/duncancockfoster/Desktop/nftg_django_backend/env/lib/python3.7/site-packages/deux/abstract_models.py", line 31

I noticed that it is only supported up through Python 3.5 - will support be added for Python 3.7? Pretty sure that is the issue here.

@dcarlcf
Copy link
Author

dcarlcf commented Aug 3, 2018

Wait nevermind ... it looks like the abstract_models.py file here is the correct one, and the one installed by pip install deux is incorrect. I replaced the file that pip install deux installed with the abstract_models.py on this github and it worked.

Is the version on pip not updated?

@brett-matthews
Copy link

brett-matthews commented Jan 14, 2019

i found this too today, pip install has the abstract model without on_delete attr

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