def clean_crop_width(self):
    width = int(self.cleaned_data['crop_width'])
    height = int(self.cleaned_data['crop_height'])
    if ((width < 450) or (height < 450)):
        raise forms.ValidationError('Your cropped image must be at least 450 by 450.')
    if (width != height):
        raise forms.ValidationError('Width and height must match.')
    return width
def clean_crop_width(self):
    width = int(self.cleaned_data['crop_width'])
    height = int(self.cleaned_data['crop_height'])
    if ((width < 450) or (height < 450)):
        raise forms.ValidationError('Your cropped image must be at least 450 by 450.')
    if (width != height):
        raise forms.ValidationError('Width and height must match.')
    return width