Treatment Type
This commit is contained in:
parent
55e08501d5
commit
ab1d605c95
6 changed files with 77 additions and 18 deletions
|
@ -16,7 +16,8 @@ from ccdb.species.models import Species, CollectionSpecies
|
|||
from ccdb.processing.models import ProcessType, Reagent, Flaw, Processing
|
||||
from ccdb.collections_ccdb.models import CollectionType, CollectionMethod, \
|
||||
Flaw, ADFGPermit, Collection
|
||||
from ccdb.experiments.models import Flaw, Experiment, ProtocolAttachment
|
||||
from ccdb.experiments.models import Flaw, Experiment, ProtocolAttachment, \
|
||||
TreatmentType
|
||||
|
||||
|
||||
class Command(BaseCommand):
|
||||
|
@ -223,3 +224,9 @@ def _import_admin_data():
|
|||
e = Experiment(id=r[0], name=r[1], code=r[2],
|
||||
description=r[3], sort_order=r[6])
|
||||
e.save()
|
||||
|
||||
# Treatment Type
|
||||
for r in c.execute('SELECT * FROM tbl_lu_treatment_types;'):
|
||||
tt = TreatmentType(experiment_id=r[0], id=r[1], name=r[2], code=r[3],
|
||||
treatment_type=r[4], placement=r[5], description=r[6])
|
||||
tt.save()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue