Skip to content

Commit

Permalink
remove department as a special case in the lab test detail, serialize…
Browse files Browse the repository at this point in the history
… model get's used for observations anyway so this errors
  • Loading branch information
fredkingham committed Jan 26, 2022
1 parent 96f8744 commit 3014dd7
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion plugins/labtests/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ def serialize_model(self, instance):
for field in fields:
if not field.is_relation:
result[field.name] = getattr(instance, field.name)
result['department'] = instance.department
return result

def serialize_observation(self, obs):
Expand Down

0 comments on commit 3014dd7

Please sign in to comment.