Commit 9bf22c92 authored by Sofia Papagiannaki's avatar Sofia Papagiannaki

astakos: Fix oauth2-client-delete command

Delete related authorization codes and tokens before deleting the client
parent 7df95f86
......@@ -58,4 +58,6 @@ class Command(BaseCommand):
"oa2-client-list for available client IDs.")
client.redirecturl_set.all().delete()
client.authorizationcode_set.all().delete()
client.token_set.all().delete()
client.delete()
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment