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

Error when logging in with superuser #4

Open
subbusgithub opened this issue Apr 25, 2019 · 2 comments
Open

Error when logging in with superuser #4

subbusgithub opened this issue Apr 25, 2019 · 2 comments

Comments

@subbusgithub
Copy link

In the views.py the get_object method throws an error saying

obj, created = Thread.objects.get_or_new(self.request.user, other_username)
TypeError: cannot unpack non-iterable NoneType object

This happens when the self.request.user and other_username are the same

@towhid135
Copy link

how can i solve it? please help me.

@avirupdutta
Copy link

i am also facing the same problem

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

3 participants