Skip to content
Snippets Groups Projects
Commit 6c8b9349 authored by Thomas Uher's avatar Thomas Uher
Browse files

add synonyms method to LazyTaxon

parent 09b04e84
No related branches found
No related tags found
No related merge requests found
......@@ -42,6 +42,16 @@ class LazyTaxon(LazyTaxonBase):
return None
def synonyms(self):
tree_instance = self.tree_instance()
synonyms = []
if tree_instance:
synonyms = self.models.TaxonSynonymModel.objects.filter(taxon=tree_instance)
return synonyms
def exists_as_synonym(self):
instance = self.synonym_instance()
if instance:
......
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