Skip to content
This repository has been archived by the owner on Feb 28, 2020. It is now read-only.

Django 2.0 support #34

Open
mrabedini opened this issue Dec 10, 2017 · 0 comments
Open

Django 2.0 support #34

mrabedini opened this issue Dec 10, 2017 · 0 comments

Comments

@mrabedini
Copy link

while using with django 2.0 I get the following error:

 File "../stored_messages/models.py", line 34, in MessageArchive
    user = models.ForeignKey(settings.AUTH_USER_MODEL)
TypeError: __init__() missing 1 required positional argument: 'on_delete'

It seems that in django2.0 the on_delete property is not mandatory. It should explicitly be expressed.

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

No branches or pull requests

1 participant