Changeset View
Changeset View
Standalone View
Standalone View
swh/web/auth/migrations/0002_remove_stored_tokens.py
Show All 10 Lines | |||||
def _remove_stored_encrypted_tokens(apps, schema_editor): | def _remove_stored_encrypted_tokens(apps, schema_editor): | ||||
OIDCUserOfflineTokens.objects.all().delete() | OIDCUserOfflineTokens.objects.all().delete() | ||||
class Migration(migrations.Migration): | class Migration(migrations.Migration): | ||||
dependencies = [ | dependencies = [ | ||||
("swh.web.auth", "0001_initial"), | ("swh_web_auth", "0001_initial"), | ||||
] | ] | ||||
operations = [migrations.RunPython(_remove_stored_encrypted_tokens)] | operations = [migrations.RunPython(_remove_stored_encrypted_tokens)] |