You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
341 B
11 lines
341 B
from django.core.management.base import BaseCommand |
|
from quiz_atomes.models import User |
|
|
|
class Command(BaseCommand): |
|
# Show this when the user types help |
|
help = "Suppression des données de la table User" |
|
|
|
def handle(self, *args, **options): |
|
|
|
User.objects.all().delete() |
|
print("Suppression des comptes : OK")
|
|
|