diff --git a/file_link/forms.py b/file_link/forms.py index 3319c45..2af554b 100644 --- a/file_link/forms.py +++ b/file_link/forms.py @@ -64,9 +64,8 @@ class FileLinkForm(forms.ModelForm): self._errors['file_content'] = [_("The file is too large. It should have less than 10MB.")] return ValueError - - - if not self.instance.pk: + + elif not self.instance.pk: self._errors['file_content'] = [_('This field is required.')] return ValueError -- libgit2 0.21.2