diff --git a/smash/web/management/commands/holidays.py b/smash/web/management/commands/holidays.py
index 7c01d080eecf0b2718506b3c7a33eebc566cf3ba..6206b760db940e38f5a869dc5326dbb5dd7b5f20 100644
--- a/smash/web/management/commands/holidays.py
+++ b/smash/web/management/commands/holidays.py
@@ -4,9 +4,6 @@ from django.core.management.base import BaseCommand
 
 from ...models import Appointment, Location, AppointmentType, AppointmentTypeLink
 
-appointment_type_other = AppointmentType.objects.filter(code='OTHER').first()
-
-
 def get_easter_monday(easter_sunday):
     return next_weekday(easter_sunday, 0)
 
@@ -64,6 +61,7 @@ class Command(BaseCommand):
         holiday.comment = comment
         holiday.visit_id = None
         holiday.save()
+        appointment_type_other = AppointmentType.objects.filter(code='OTHER').first()
         link = AppointmentTypeLink(appointment=holiday, appointment_type=appointment_type_other)
         link.save()