def validate(postcode):
    postcode = postcode.strip()
    if postcode.isdigit():
        return postcode
    else:
        raise ValueError(_('Invalid Australian postal code'))
Resizes Image if it's over the maximum dimension
dataset/ETHPy150Open dokterbob/satchmo/satchmo/apps/l10n/validators/aupostcode.py/validate--crossover with--dataset/ETHPy150Open treeio/treeio/treeio/infrastructure/forms.py/ItemForm._image_resize