mirror of
https://git.v0id.ovh/n3wt-innov/n3wt-school.git
synced 2026-01-29 07:53:23 +00:00
chore: commit qui sert à rien
This commit is contained in:
@ -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
|
||||
}
|
||||
]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user