diff options
| author | François Freitag <mail@franek.fr> | 2021-04-19 09:58:34 +0200 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2021-04-20 07:34:53 +0200 |
| commit | 6b0b3eafd6674305f7b09dbeb1aa0d8d8bb4df57 (patch) | |
| tree | 952b0327f570411069b0ab2bb8a4a1bb7704388e /django/db/backends/sqlite3/base.py | |
| parent | b13af4752fa3e5e7c08163902f32260a50f69ef7 (diff) | |
Fixed #32664 -- Made PasswordResetTokenGenerator.secret validation lazy.
Django apps initialization to run management command triggers the admin
autodiscovery. Importing django.contrib.auth.tokens creates an instance
of PasswordResetTokenGenerator which required a SECRET_KEY.
For several management commands, the token generator is unused. It
should only complain about a missing SECRET_KEY when it is used.
Diffstat (limited to 'django/db/backends/sqlite3/base.py')
0 files changed, 0 insertions, 0 deletions
