Skip to content

Commit

Permalink
Merge pull request #436 from bento-platform/fixes/disease-autocomplet…
Browse files Browse the repository at this point in the history
…e-id

add missing id field to disease autocomplete
  • Loading branch information
gsfk committed Sep 18, 2023
2 parents 4ab3c55 + 1aa9f55 commit c9042c1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions chord_metadata_service/phenopackets/autocomplete_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ class DiseaseTermAutocomplete(autocomplete.Select2QuerySetView):

# get_result_value return result.pk

def get_result_label(self, item):
return item.term["label"]
def get_result_value(self, item):
return item.term["id"]

def get_selected_result_label(self, item):
def get_result_label(self, item):
return item.term["label"]

def get_queryset(self):
Expand Down

0 comments on commit c9042c1

Please sign in to comment.