HomeSoftware Heritage

auth/views: Fix encrypted token retrieval with PostreSQL backend

This commit no longer exists in the repository. It may have been part of a branch which was deleted.

Description

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.

Details

Provenance
anlambertAuthored on Apr 2 2021, 12:15 PM
anlambertPushed on Apr 2 2021, 12:28 PM
Differential Revision
D5407: auth/views: Fix encrypted token retrieval with PostreSQL backend
Build Status
Buildable 20410
Build 31675: test-and-buildJenkins console · Jenkins

Commit No Longer Exists

This commit no longer exists in the repository.