def district_id_validator(cls, value):
     error_message = "{} is not a valid district abbreviation".format(value)
     district_key_error = {"district_abbrev": error_message}
     if District.validate_key_name(value) is False:
         return district_key_error
 def district_id_validator(cls, value):
     error_message = "{} is not a valid district abbreviation".format(value)
     district_key_error = {"district_abbrev": error_message}
     if District.validate_key_name(value) is False:
         return district_key_error
 def is_valid_model_key(cls, key):
     return (Team.validate_key_name(key) or Event.validate_key_name(key)
             or Match.validate_key_name(key)
             or District.validate_key_name(key))
 def is_valid_model_key(cls, key):
     return (Team.validate_key_name(key) or
         Event.validate_key_name(key) or
         Match.validate_key_name(key) or
         District.validate_key_name(key))