diff --git a/app/models.py b/app/models.py index 63559ca..b95fa43 100644 --- a/app/models.py +++ b/app/models.py @@ -156,6 +156,30 @@ class Resource(models.Model): ("****", "****"), ("*****", "*****"), ) + TYPE_CHOICES = ( + ("" ,"" ), + ("Atlas" ,"Atlas" ), + ("Book" ,"Book" ), + ("Book chapter" ,"Book chapter" ), + ("Case study" ,"Case study" ), + ("Conservation project","Conservation project"), + ("Dataset" ,"Dataset" ), + ("Development project" ,"Development project" ), + ("Journal article" ,"Journal article" ), + ("LTER" ,"LTER" ), + ("Map" ,"Map" ), + ("Network" ,"Network" ), + ("PEGASuS" ,"PEGASuS" ), + ("Presentation" ,"Presentation" ), + ("Report" ,"Report" ), + ("Research project" ,"Research project" ), + ("Research Site" ,"Research Site" ), + ("Thesis" ,"Thesis" ), + ("Video" ,"Video" ), + ("Website" ,"Website" ), + ("Working Group" ,"Working Group" ), + ) + id = models.AutoField(primary_key=True) source_id = models.IntegerField(blank=True, null=True) title = models.TextField(blank=True, null=True) @@ -163,7 +187,7 @@ class Resource(models.Model): citation = models.TextField(blank=True, null=True) abstract = models.TextField(blank=True, null=True) - type = models.TextField(blank=True, null=True) + type = models.TextField(blank=True, null=True, choices=TYPE_CHOICES) author_keywords = models.TextField(blank=True, null=True) lat = models.TextField(blank=True, null=True) lon = models.TextField(blank=True, null=True)