Skip to content

Commit

Permalink
[biblioref] Adiciona numero DOI ao form. #224
Browse files Browse the repository at this point in the history
  • Loading branch information
viniciusandrade committed Aug 2, 2016
1 parent f7fe558 commit 3bf574f
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 2 deletions.
28 changes: 28 additions & 0 deletions bireme/biblioref/migrations/0019_auto_20160802_1538.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('biblioref', '0018_auto_20160629_1042'),
]

operations = [
migrations.RemoveField(
model_name='referencesource',
name='doi_number',
),
migrations.AddField(
model_name='referenceanalytic',
name='doi_number',
field=models.CharField(max_length=150, verbose_name='DOI number', blank=True),
),
migrations.AlterField(
model_name='reference',
name='LILACS_indexed',
field=models.BooleanField(default=True, verbose_name='Validate using LILACS methodology'),
),
]
4 changes: 2 additions & 2 deletions bireme/biblioref/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,8 +203,6 @@ class Meta:
symbol = models.TextField(_('Symbol'), blank=True)
# field tag 69
isbn = models.CharField(_('ISBN'), max_length=60, blank=True)
# field tag 724
doi_number = models.CharField(_('DOI number'), max_length=150, blank=True)

def __unicode__(self):
source_title = ''
Expand Down Expand Up @@ -249,6 +247,8 @@ class Meta:
thesis_dissertation_analytic_leader = JSONField(_('Leader'), blank=True, null=True, dump_kwargs={'ensure_ascii': False})
# field tag 700
clinical_trial_registry_name = JSONField(_('Clinical trial registry name'), blank=True, null=True, dump_kwargs={'ensure_ascii': False})
# field tag 724
doi_number = models.CharField(_('DOI number'), max_length=150, blank=True)

def __unicode__(self):
if 'a' in self.treatment_level:
Expand Down

0 comments on commit 3bf574f

Please sign in to comment.