feature: add command to reset all tokens

This commit is contained in:
winkidney
2022-04-14 07:50:15 -07:00
parent 8a5f434616
commit 03d1aed7aa
3 changed files with 7 additions and 0 deletions

View File

View File

View File

@@ -0,0 +1,7 @@
from django.core.management import BaseCommand
class Command(BaseCommand):
def handle(self, *args, **options):
from rest_framework.authtoken.models import Token
Token.objects.all().delete()