# forms.py
class Meta:
error_messages = {
'mobile': {
'unique': _("Mobile number already exists."),
},
'email': {
'unique': _("Email already exists."),
},
}
Last active
April 21, 2021 17:03
-
-
Save linuxkathirvel/001a92927c7e50ed43e1f4361acea8ad to your computer and use it in GitHub Desktop.
Custom unique error message to Django model form for already exists error
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment