Skip to content

Commit

Permalink
#1015 Changing how validation is disabled.
Browse files Browse the repository at this point in the history
  • Loading branch information
ConradSelig committed Jul 31, 2020
1 parent 4875642 commit 80f7191
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions ScenarioCreator/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -499,13 +499,9 @@ def validate(self):
'destroy_indirect_back_traces',
'destruction_priority',
],
''' Vaccination Validation was disabled for #1015
'use_vaccination': ['vaccinate_detected_units',
'minimum_time_between_vaccinations',
'days_to_immunity',
'vaccine_immune_period',
],
'''
'use_cost_accounting': ['cost_of_destruction_appraisal_per_unit',
'cost_of_destruction_cleaning_per_unit',
'cost_of_euthanasia_per_animal',
Expand Down Expand Up @@ -646,6 +642,8 @@ def __str__(self):
return self.name

def tab_is_valid(self, use_tab_name, fields=None):
if use_tab_name is "use_vaccination":
return True
if fields is None:
fields = protocol_substructure[use_tab_name]
for field in fields:
Expand Down

0 comments on commit 80f7191

Please sign in to comment.