Skip to content

Commit

Permalink
Dropdownlist for Series
Browse files Browse the repository at this point in the history
  • Loading branch information
kthoden committed Aug 19, 2019
1 parent 92d2a23 commit 2c5af65
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions eoaforthcoming/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2c5af65

Please sign in to comment.