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

appointment title cannot contain new line char

parent be8cfc1e
No related branches found
No related tags found
1 merge request!2Appointments dev
......@@ -558,7 +558,7 @@ class Appointment(models.Model):
def title(self):
if self.visit.subject.screening_number=="---":
return self.comment
return self.comment.replace("\n", ";")
else:
title = self.visit.subject.first_name + " " + self.visit.subject.last_name + " type: "
for type in self.appointment_types.all():
......
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