Skip to content
Snippets Groups Projects

auth/views: Fix encrypted token retrieval with PostreSQL backend

When using the PostgreSQL backend for django database, models.BinaryField colums are typed to memoryview while they are typed to bytes with SQLite backend.

So handle both token types to fix errors in production since the move to PostgreSQL backend.


Migrated from D5407 (view on Phabricator)

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Loading
  • Loading
  • Loading
  • Loading
Please register or sign in to reply
Loading