Skip to content

Fix #131: import missing _do_login and REDIRECT_FIELD_NAME in users/v…#132

Open
subinita01 wants to merge 1 commit intocytoscape:masterfrom
subinita01:fix/issue-131-undefined-names
Open

Fix #131: import missing _do_login and REDIRECT_FIELD_NAME in users/v…#132
subinita01 wants to merge 1 commit intocytoscape:masterfrom
subinita01:fix/issue-131-undefined-names

Conversation

@subinita01
Copy link
Copy Markdown

…iews.py

The complete() view referenced _do_login and REDIRECT_FIELD_NAME without importing them, causing a NameError on every OAuth callback.

…n users/views.py

The complete() view referenced _do_login and REDIRECT_FIELD_NAME without
importing them, causing a NameError on every OAuth callback.

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
@subinita01
Copy link
Copy Markdown
Author

Problem

The complete() view in users/views.py references _do_login and
REDIRECT_FIELD_NAME without importing them, causing a NameError
on every OAuth callback (e.g. Google login).

Fix

  • Import REDIRECT_FIELD_NAME from django.contrib.auth
  • Import _do_login from social_django.views

Fixes #131

@subinita01 subinita01 closed this Mar 24, 2026
@subinita01 subinita01 reopened this Mar 24, 2026
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

Successfully merging this pull request may close these issues.

1 participant