Skip to content
Snippets Groups Projects
Commit ff5583b5 authored by Hervé  MENAGER's avatar Hervé MENAGER
Browse files

exclude automatically filled fields from Bibliography ModelForm

parent f1140981
No related branches found
No related tags found
No related merge requests found
...@@ -42,7 +42,7 @@ class Bibliography(models.Model): ...@@ -42,7 +42,7 @@ class Bibliography(models.Model):
class BibliographyForm(ModelForm): class BibliographyForm(ModelForm):
class Meta: class Meta:
model = Bibliography model = Bibliography
fields = '__all__' exclude = ['title','journal_name', 'authors_list', 'biblio_year']
class Taxonomy(models.Model): class Taxonomy(models.Model):
taxonomy_id = models.DecimalField('NCBI TaxID', unique=True, max_digits=4, decimal_places=0) taxonomy_id = models.DecimalField('NCBI TaxID', unique=True, max_digits=4, decimal_places=0)
......
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