Add command to remove rank from skill

This commit is contained in:
Gregory Trullemans 2022-10-31 11:04:48 +01:00
parent 87a9c73aec
commit d17d95f326
1 changed files with 0 additions and 13 deletions

View File

@ -1,13 +0,0 @@
""" supprime le rank des skill
"""
from django.core.management.base import BaseCommand
from ultron.objective.models import Skill
class Command(BaseCommand):
def handle(self, *args, **options):
skill_list = Skill.objects.all()
for skill in skill_list:
skill.rank = 0
skill.save()