SciPost Code Repository

Skip to content
Snippets Groups Projects
Commit 9ccfd3d0 authored by Jorran de Wit's avatar Jorran de Wit
Browse files

Make journal.issn blank=true

parent be390e9d
No related branches found
No related tags found
No related merge requests found
# -*- coding: utf-8 -*-
# Generated by Django 1.11.4 on 2017-11-01 09:28
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('journals', '0047_auto_20171101_0944'),
]
operations = [
migrations.AlterField(
model_name='journal',
name='issn',
field=models.CharField(blank=True, default='2542-4653', max_length=16),
),
]
......@@ -33,7 +33,7 @@ class Journal(models.Model):
name = models.CharField(max_length=100, choices=SCIPOST_JOURNALS, unique=True)
doi_label = models.CharField(max_length=200, unique=True, db_index=True,
validators=[doi_journal_validator])
issn = models.CharField(max_length=16, default='2542-4653')
issn = models.CharField(max_length=16, default='2542-4653', blank=True)
active = models.BooleanField(default=True)
objects = JournalManager()
......
......@@ -50,7 +50,7 @@
<div class="row my-1">
<div class="col-12">
{% if journal.active %}
<p>{{journal}} is published by the SciPost Foundation under the journal doi: 10.21468/{{journal.name}} and ISSN {{journal.issn}}.</p>
<p>{{journal}} is published by the SciPost Foundation under the journal doi: 10.21468/{{journal.name}}{% if journal.issn %} and ISSN {{journal.issn}}{% endif %}.</p>
{% endif %}
{% if journal.doi_label == 'SciPostPhys' %}
<p>SciPost Physics has been awarded the DOAJ Seal <img src="{% static 'scipost/images/DOAJ_Seal_logo_big.png' %}" alt="DOAJ Seal" width="40"> from the <a href="https://doaj.org">Directory of Open Access Journals</a></p>
......
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