chore: commit qui sert à rien

This commit is contained in:
N3WT DE COMPET
2025-02-13 17:13:31 +01:00
parent 9bf9c5f62d
commit cce78355a3
17 changed files with 210 additions and 143 deletions

View File

@ -1,6 +1,6 @@
from django.core.management.base import BaseCommand
from Auth.models import Profile
from School.models import Speciality, Teacher, SchoolClass
from School.models import Speciality, Teacher, SchoolClass, Establishment
class Command(BaseCommand):
help = 'Initialize or update Fees and Discounts'
@ -108,6 +108,7 @@ class Command(BaseCommand):
self.stdout.write(self.style.SUCCESS('Teachers initialized or updated successfully'))
def create_or_update_schoolClasses(self):
establishment = Establishment.objects.get(name="N3WT")
school_classes_data = [
{
"atmosphere_name": "Classe A",
@ -119,7 +120,8 @@ class Command(BaseCommand):
"type": 1,
"time_range": ["08:30", "17:30"],
"opening_days": [1, 2, 4, 5],
"teachers": [2] # ID of Severus Rogue
"teachers": [2], # ID of Severus Rogue
"establishment": establishment
},
{
"atmosphere_name": "Classe B",
@ -131,7 +133,8 @@ class Command(BaseCommand):
"type": 1,
"time_range": ["08:30", "17:30"],
"opening_days": [1, 2, 4, 5],
"teachers": [3] # ID of Minerva McGonagall
"teachers": [3], # ID of Minerva McGonagall
"establishment": establishment
},
{
"atmosphere_name": "Classe C",
@ -143,7 +146,8 @@ class Command(BaseCommand):
"type": 1,
"time_range": ["08:30", "17:30"],
"opening_days": [1, 2, 4, 5],
"teachers": [4] # ID of Pomona Chourave
"teachers": [4], # ID of Pomona Chourave
"establishment": establishment
}
]