print statement removed
This commit is contained in:
parent
d71dce86bb
commit
4b3425f07e
@ -959,7 +959,6 @@ class HiringAgencyForm(forms.ModelForm):
|
|||||||
# instance = self.instance
|
# instance = self.instance
|
||||||
email = email.lower().strip()
|
email = email.lower().strip()
|
||||||
if not instance.pk: # Creating new instance
|
if not instance.pk: # Creating new instance
|
||||||
print("created ....")
|
|
||||||
if HiringAgency.objects.filter(email=email).exists() or User.objects.filter(email=email):
|
if HiringAgency.objects.filter(email=email).exists() or User.objects.filter(email=email):
|
||||||
raise ValidationError("An agency with this email already exists.")
|
raise ValidationError("An agency with this email already exists.")
|
||||||
else: # Editing existing instance
|
else: # Editing existing instance
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user