Commit 100c0b71 authored by Hervé  MENAGER's avatar Hervé MENAGER
Browse files

enable long DOIs (no length limit)

FIX #166
parent da5eb67e
Pipeline #20120 passed with stages
in 11 minutes and 16 seconds
# Generated by Django 2.2.1 on 2019-12-16 14:38
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('ippidb', '0038_auto_20191106_1635'),
]
operations = [
migrations.AlterField(
model_name='bibliography',
name='id_source',
field=models.TextField(verbose_name='Bibliographic ID'),
),
]
......@@ -81,7 +81,7 @@ class Bibliography(AutoFillableModel):
source = models.CharField(
"Bibliographic type", max_length=2, choices=SOURCES, default=SOURCES[0][0]
)
id_source = models.CharField("Bibliographic ID", max_length=25)
id_source = models.TextField("Bibliographic ID")
title = models.TextField("Title")
journal_name = models.TextField("Journal name", null=True, blank=True)
authors_list = models.TextField("Authors list")
......
......@@ -17,6 +17,14 @@ from ippidb.ws import convert_iupac_to_smiles
from live_settings import live_settings
class BibliographyIDTestCase(TestCase):
def test_long_doi(self):
b = models.Bibliography()
b.source = "DO"
b.id_source = "10.1016/j.bmcl.2013.03.013"
b.save(autofill=True)
class ContributionViewsAccessTestCase(TestCase):
def setUp(self):
self.url = reverse("admin-session-add")
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment