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

add function to pretty print the subject address

parent 7d431a90
No related branches found
No related tags found
2 merge requests!224Feature/selectable redcap fields,!223Add/addresses to subject view
......@@ -102,6 +102,9 @@ class Subject(models.Model):
editable=True
)
def pretty_address(self):
return u'{} ({}), {}. {}'.format(self.address, self.postal_code, self.city, self.country)
def mark_as_dead(self):
self.dead = True
self.finish_all_visits()
......
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