Skip to content
Snippets Groups Projects
Commit 8ad45880 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

title of the calendar entry contain type

parent 246d68c2
No related branches found
No related tags found
1 merge request!1Appointments dev
......@@ -468,4 +468,7 @@ class Appointment(models.Model):
if self.visit.subject.screening_number=="---":
return self.comment
else:
return self.visit.subject.first_name + " " + self.visit.subject.last_name
title = self.visit.subject.first_name + " " + self.visit.subject.last_name + " type: "
for type in self.appointment_types.all():
title += type.code+", "
return title
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