We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 907d70f commit 04af386Copy full SHA for 04af386
oauth2_provider/migrations/0012_add_token_checksum.py
@@ -9,7 +9,7 @@ def forwards_func(apps, schema_editor):
9
Forward migration touches every "old" accesstoken.token which will cause the checksum to be computed.
10
"""
11
AccessToken = apps.get_model(oauth2_settings.ACCESS_TOKEN_MODEL)
12
- accesstokens = AccessToken._default_manager.all()
+ accesstokens = AccessToken._default_manager.iterator()
13
for accesstoken in accesstokens:
14
accesstoken.save(update_fields=['token_checksum'])
15
0 commit comments