Skip to content

Commit

Permalink
fixed display for participant fields
Browse files Browse the repository at this point in the history
  • Loading branch information
bbonf committed Jan 2, 2024
1 parent 702f160 commit 3e6a061
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion lab/participants/models/participant.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,13 @@ def fullname(self):
return self.name

def get_sex_display(self):
return self.Sex(self.sex).label
return self.data.get_sex_display()

def get_birth_weight_display(self):
return self.data.get_birth_weight_display()

def get_pregnancy_duration_display(self):
return self.data.get_pregnancy_duration_display()

@property
def dyslexic_parent_bool(self) -> bool | None:
Expand Down

0 comments on commit 3e6a061

Please sign in to comment.