Commit 02c69d73 authored by Hervé  MENAGER's avatar Hervé MENAGER
Browse files

set default values to Bibliography model booleans

parent e0bba382
......@@ -3,6 +3,8 @@ from __future__ import unicode_literals
from django.db import models
from django.forms import ModelForm
from .ws import get_pubmed_info
class Bibliography(models.Model):
"""
Bibliography data table
......@@ -17,13 +19,13 @@ class Bibliography(models.Model):
journal_name = models.CharField('Journal name', max_length=50)
authors_list = models.CharField('Authors list', max_length=500)
biblio_year = models.PositiveSmallIntegerField('Year')
cytotox = models.BooleanField('Cytotoxicity data')
in_silico = models.BooleanField('in silico study performed')
in_vitro = models.BooleanField('in vitro study performed')
in_vivo = models.BooleanField('in vivo study performed')
in_cellulo = models.BooleanField('in cellulo study performed')
pharmacokinetic = models.BooleanField('pharmacokinetic study performed')
xray = models.BooleanField('contains xray data')
cytotox = models.BooleanField('Cytotoxicity data', default=False)
in_silico = models.BooleanField('in silico study performed', default=False)
in_vitro = models.BooleanField('in vitro study performed', default=False)
in_vivo = models.BooleanField('in vivo study performed', default=False)
in_cellulo = models.BooleanField('in cellulo study performed', default=False)
pharmacokinetic = models.BooleanField('pharmacokinetic study performed', default=False)
xray = models.BooleanField('contains xray data', default=False)
def get_absolute_url(self):
return reverse('bibliography-detail', args=[str(self.id)])
......
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