Ejemplo n.º 1
0
 def clean_completion_conditions(self):
     """Validates the unlock conditions of the quest."""
     data = self.cleaned_data["completion_conditions"]
     utils.validate_form_predicates(data)
     return data
Ejemplo n.º 2
0
 def clean_unlock_condition(self):
     """Validates the unlock conditions of the action."""
     data = self.cleaned_data["unlock_condition"]
     utils.validate_form_predicates(data)
     return data
Ejemplo n.º 3
0
 def clean_completion_conditions(self):
     """Validates the unlock conditions of the quest."""
     data = self.cleaned_data["completion_conditions"]
     utils.validate_form_predicates(data)
     return data