From 2c5af655e325b45a8d0cdd48954f68cd371a6dbc Mon Sep 17 00:00:00 2001 From: kthoden Date: Mon, 19 Aug 2019 10:45:20 +0200 Subject: [PATCH] Dropdownlist for Series --- eoaforthcoming/models.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/eoaforthcoming/models.py b/eoaforthcoming/models.py index 27be912..ceca025 100644 --- a/eoaforthcoming/models.py +++ b/eoaforthcoming/models.py @@ -8,10 +8,14 @@ class Forthcoming(Model): max_length=200, unique=True ) - series = models.CharField( - max_length=200, - unique=True + series_list = ( + ('Sources', 'Sources'), + ('Studies', 'Studies'), + ('Proceedings', 'Proceedings'), + ('Textbooks', 'Textbooks'), ) + series = models.CharField(max_length=20, choices=series_list) + author = models.CharField( max_length=200, unique=True