class myForm(forms.ModelForm):


    class Meta:
        model = myModel

def clean_picture(self):
    picture = self.cleaned_data.get('picture')
if not picture:
    raise forms.ValidationError('No image!')
else:
    pass
Validate image size in django admin