Skip to content
Snippets Groups Projects
Commit 47626cc0 authored by Rachel TORCHET's avatar Rachel TORCHET
Browse files

Change Bibliography form

Former-commit-id: 984d0660c44c6617a2ee517fab2e66b9fa52952b
parent 44a28781
No related branches found
No related tags found
No related merge requests found
......@@ -23,13 +23,8 @@ class BibliographyForm(ModelForm):
class Meta:
model = Bibliography
exclude = ['authors_list', 'biblio_year']
widgets = {
'source': forms.TextInput(attrs={'readonly': 'readonly', 'class': 'readonly'}),
'id_source': forms.TextInput(attrs={'readonly': 'readonly', 'class': 'readonly'}),
'title': forms.TextInput(attrs={'readonly': 'readonly', 'class': 'readonly'}),
'journal_name': forms.TextInput(attrs={'readonly': 'readonly', 'class': 'readonly'}),
}
fields = ['cytotox', 'in_silico', 'in_vitro', 'in_vivo', 'in_cellulo', 'pharmacokinetic', 'xray']
def validate_pdb_exists(value):
......
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