Ejemplo n.º 1
0
def get_state_names(states):
    """Get a string of labels for states.

    :param states: The states to get labels for.

    :returns: A string of state names join with 'or'
    """
    states = listify(states)
    state_names = [str(FormState.label(s)) for s in states]

    return " or ".join(state_names)
Ejemplo n.º 2
0
 def form_state_name(self):
     return FormState.label(self.form_state)
Ejemplo n.º 3
0
 def form_state_name(self):
     return FormState.label(self.form_state)