Skip to content
Snippets Groups Projects
Commit 7a75e00c authored by Carlos Vega's avatar Carlos Vega
Browse files

fix unicode problems with the names when creating an office availability object

parent 986ae693
No related branches found
No related tags found
1 merge request!183Hotfix/office availability
......@@ -185,7 +185,7 @@ class Worker(models.Model):
start_date = start_date.replace(hour=0, minute=0, second=0)
end_date = start_date + datetime.timedelta(days=1)
office_availability = OfficeAvailability('{} {}'.format(self.first_name, self.last_name), start=start_date, end=end_date)
office_availability = OfficeAvailability(u'{} {}'.format(self.first_name, self.last_name), start=start_date, end=end_date)
#Subject Appointments
old_events = Q(date_when__gt=start_date) & Q(date_when__gt=end_date)
......
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