.
This commit is contained in:
@@ -33,9 +33,9 @@ class RotaSchedule(models.Model):
|
||||
Returns the RotaBuilder instance.
|
||||
"""
|
||||
try:
|
||||
from rota.shifts import RotaBuilder, SingleShift
|
||||
from rota_generator.shifts import RotaBuilder, SingleShift
|
||||
except Exception:
|
||||
raise RuntimeError("Unable to import rota.shifts; ensure the rota package is importable")
|
||||
raise RuntimeError("Unable to import rota_generator.shifts; ensure the rota package is importable")
|
||||
|
||||
# compute weeks_to_rota (integer number of weeks)
|
||||
delta = self.end_date - self.start_date
|
||||
@@ -90,7 +90,7 @@ class Worker(models.Model):
|
||||
pydantic defaults will fill the rest.
|
||||
"""
|
||||
try:
|
||||
from rota.workers import Worker as PydWorker
|
||||
from rota_generator.workers import Worker as PydWorker
|
||||
except Exception:
|
||||
raise RuntimeError("Unable to import rota.workers.Worker; ensure project package is importable")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user