Commit 04c70cfa authored by Bryan  BRANCOTTE's avatar Bryan BRANCOTTE
Browse files

Should be atomic, in case of failure in sub fetching

parent 599d058d
......@@ -9,7 +9,7 @@ import re
from django.conf import settings
from django.core.exceptions import ValidationError
from django.db import models
from django.db import models, transaction
from django.db.models import FloatField, IntegerField, BooleanField
from django.db.models import Max, Count, F, Q, Case, When
from django.db.models.functions import Cast
......@@ -189,6 +189,7 @@ class Protein(AutoFillableModel):
organism = models.ForeignKey('Taxonomy', models.CASCADE)
molecular_functions = models.ManyToManyField(MolecularFunction)
def autofill(self):
fetch information from external services
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