Skip to content

Commit

Permalink
Close #3
Browse files Browse the repository at this point in the history
  • Loading branch information
kthoden committed Jul 14, 2021
1 parent fd0a16b commit e7b032c
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions eoaforthcoming/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
# Create your models here.
from cms.models import CMSPlugin, Model

from eoaseries.models import Series

class Forthcoming(Model):
class Meta:
verbose_name_plural = "Forthcoming publications"
Expand All @@ -11,12 +13,11 @@ class Meta:
max_length=200,
unique=True
)
series_list = (
('Sources', 'Sources'),
('Studies', 'Studies'),
('Proceedings', 'Proceedings'),
('Textbooks', 'Textbooks'),
)
registered_series = Series.objects.all().order_by('name')
series_list = []
for rs in registered_series:
newseries = (str(rs), str(rs))
series_list.append(newseries)
series = models.CharField(max_length=20, choices=series_list)

author = models.CharField(
Expand Down

0 comments on commit e7b032c

Please sign in to comment.