This website works better with JavaScript.
Home
Help
Sign In
heuzef
/
pinry
mirror of
https://github.com/pinry/pinry.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
43
Wiki
Activity
Browse Source
feature: add command to reset all tokens
tags/v2.1.7
winkidney
2 years ago
parent
8a5f434616
commit
03d1aed7aa
3 changed files
with
7 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+0
-0
users/management/__init__.py
+0
-0
users/management/commands/__init__.py
+7
-0
users/management/commands/users_reset_tokens.py
+ 0
- 0
users/management/__init__.py
View File
+ 0
- 0
users/management/commands/__init__.py
View File
+ 7
- 0
users/management/commands/users_reset_tokens.py
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()
Write
Preview
Loading…
Cancel
Save