def validate_zip_code(school_zip, international): if not international: validators.numeric(school_zip)
def validate_zip(self, attrs, source): school_zip = attrs[source] validators.numeric(school_zip) return attrs
def validate_zip(self, value): school_zip = value validators.numeric(school_zip) return value