Traceback (most recent call last):
File "/srv/aleksis/envs/production/lib/python3.9/site-packages/celery/app/trace.py", line 451, in trace_task
R = retval = fun(*args, **kwargs)
File "/srv/aleksis/envs/production/lib/python3.9/site-packages/celery/app/trace.py", line 734, in __protected_call__
return self.run(*args, **kwargs)
File "/srv/aleksis/envs/production/lib/python3.9/site-packages/aleksis/core/util/celery_progress.py", line 158, in _inject_recorder
orig(*args, **kwargs, recorder=recorder)
File "/srv/aleksis/envs/production/lib/python3.9/site-packages/aleksis/apps/alsijil/tasks.py", line 170, in generate_full_register_printout
file_object, result = generate_pdf_from_template(
File "/srv/aleksis/envs/production/lib/python3.9/site-packages/aleksis/core/util/pdf.py", line 127, in generate_pdf_from_template
html_template = render_to_string(template_name, processed_context, request)
File "/srv/aleksis/envs/production/lib/python3.9/site-packages/django/template/loader.py", line 62, in render_to_string
return template.render(context, request)
File "/srv/aleksis/envs/production/lib/python3.9/site-packages/django/template/backends/django.py", line 61, in render
return self.template.render(context)
File "/srv/aleksis/envs/production/lib/python3.9/site-packages/django/template/base.py", line 170, in render
return self._render(context)
File "/srv/aleksis/envs/production/lib/python3.9/site-packages/django/test/utils.py", line 100, in instrumented_test_render
return self.nodelist.render(context)
File "/srv/aleksis/envs/production/lib/python3.9/site-packages/django/template/base.py", line 938, in render
bit = node.render_annotated(context)
File "/srv/aleksis/envs/production/lib/python3.9/site-packages/django/template/base.py", line 905, in render_annotated
return self.render(context)
File "/srv/aleksis/envs/production/lib/python3.9/site-packages/django/template/loader_tags.py", line 150, in render
return compiled_parent._render(context)
File "/srv/aleksis/envs/production/lib/python3.9/site-packages/django/test/utils.py", line 100, in instrumented_test_render
return self.nodelist.render(context)
File "/srv/aleksis/envs/production/lib/python3.9/site-packages/django/template/base.py", line 938, in render
bit = node.render_annotated(context)
File "/srv/aleksis/envs/production/lib/python3.9/site-packages/django/template/base.py", line 905, in render_annotated
return self.render(context)
File "/srv/aleksis/envs/production/lib/python3.9/site-packages/django/template/loader_tags.py", line 62, in render
result = block.nodelist.render(context)
File "/srv/aleksis/envs/production/lib/python3.9/site-packages/django/template/base.py", line 938, in render
bit = node.render_annotated(context)
File "/srv/aleksis/envs/production/lib/python3.9/site-packages/django/template/base.py", line 905, in render_annotated
return self.render(context)
File "/srv/aleksis/envs/production/lib/python3.9/site-packages/django/template/defaulttags.py", line 211, in render
nodelist.append(node.render_annotated(context))
File "/srv/aleksis/envs/production/lib/python3.9/site-packages/django/template/base.py", line 905, in render_annotated
return self.render(context)
File "/srv/aleksis/envs/production/lib/python3.9/site-packages/django/template/defaulttags.py", line 211, in render
nodelist.append(node.render_annotated(context))
File "/srv/aleksis/envs/production/lib/python3.9/site-packages/django/template/base.py", line 905, in render_annotated
return self.render(context)
File "/srv/aleksis/envs/production/lib/python3.9/site-packages/django/template/defaulttags.py", line 516, in render
return self.nodelist.render(context)
File "/srv/aleksis/envs/production/lib/python3.9/site-packages/django/template/base.py", line 938, in render
bit = node.render_annotated(context)
File "/srv/aleksis/envs/production/lib/python3.9/site-packages/django/template/base.py", line 905, in render_annotated
return self.render(context)
File "/srv/aleksis/envs/production/lib/python3.9/site-packages/django/template/defaulttags.py", line 211, in render
nodelist.append(node.render_annotated(context))
File "/srv/aleksis/envs/production/lib/python3.9/site-packages/django/template/base.py", line 905, in render_annotated
return self.render(context)
File "/srv/aleksis/envs/production/lib/python3.9/site-packages/django/template/defaulttags.py", line 312, in render
return nodelist.render(context)
File "/srv/aleksis/envs/production/lib/python3.9/site-packages/django/template/base.py", line 938, in render
bit = node.render_annotated(context)
File "/srv/aleksis/envs/production/lib/python3.9/site-packages/django/template/base.py", line 905, in render_annotated
return self.render(context)
File "/srv/aleksis/envs/production/lib/python3.9/site-packages/django/template/base.py", line 988, in render
output = self.filter_expression.resolve(context)
File "/srv/aleksis/envs/production/lib/python3.9/site-packages/django/template/base.py", line 671, in resolve
obj = self.var.resolve(context)
File "/srv/aleksis/envs/production/lib/python3.9/site-packages/django/template/base.py", line 796, in resolve
value = self._resolve_lookup(context)
File "/srv/aleksis/envs/production/lib/python3.9/site-packages/django/template/base.py", line 837, in _resolve_lookup
current = getattr(current, bit)
File "/srv/aleksis/envs/production/lib/python3.9/site-packages/aleksis/apps/chronos/models.py", line 1135, in period_to_on_day
return self.raw_period_to_on_day.period
AttributeError: 'NoneType' object has no attribute 'period'