Add command to remove rank from skill

This commit is contained in:
Gregory Trullemans 2022-10-31 11:09:12 +01:00
parent d17d95f326
commit 3b153838ef
1 changed files with 13 additions and 0 deletions

View File

@ -0,0 +1,13 @@
""" 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()