Skip to content
Snippets Groups Projects
Verified Commit 65b33e58 authored by Jonathan Weth's avatar Jonathan Weth :keyboard:
Browse files

Fix broken import

parent 1a3daa3f
No related branches found
No related tags found
No related merge requests found
from datetime import date
from aleksis.apps.chronos.models import TimePeriod
from django.utils.formats import date_format
......@@ -9,6 +8,6 @@ def format_m2m(f, attr: str = "short_name") -> str:
return ", ".join([getattr(x, attr) for x in f.all()])
def format_date_period(day: date, period: TimePeriod) -> str:
def format_date_period(day: date, period: "TimePeriod") -> str:
"""Format date and time period."""
return "{}, {}.".format(date_format(day), period.period)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment