Skip to content
Snippets Groups Projects
Commit 4885fbe3 authored by Hervé  MENAGER's avatar Hervé MENAGER
Browse files

set taxonomy name as the default label for the object

parent 2ada6c83
No related branches found
No related tags found
No related merge requests found
...@@ -58,6 +58,9 @@ class Taxonomy(models.Model): ...@@ -58,6 +58,9 @@ class Taxonomy(models.Model):
self.name = info['scientific_name'] self.name = info['scientific_name']
super(Taxonomy, self).save(*args, **kwargs) super(Taxonomy, self).save(*args, **kwargs)
def __str__(self):
return self.name
class Meta: class Meta:
verbose_name_plural = "taxonomies" verbose_name_plural = "taxonomies"
......
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