Wednesday, January 8, 2020

Re: Dajgo Validation error

For email you can set email field in model as unique=True and the password should be  stored in hash.. 

On Wed, 8 Jan 2020, 9:37 pm Soumen Khatua, <soumenkhatua258@gmail.com> wrote:
Hi Folk,

What is the process to validate fields in django rest framework?
like email and phone number should be unique and password should be alphanumeric character only.

Where i need to write the logic inside serializers or views part and how i can do that?

Thank you in advance

Regards,
Soumen


--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAPUw6Wb7_45-r165wg10M-w%2B6V6zOheCnEC3_chbJ-GEHRGQLA%40mail.gmail.com.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAPjsHcFKnaczwY-%3DKWqbPWrUuecv6YYWR19qPwSWmZpSYG%2BW0w%40mail.gmail.com.

No comments:

Post a Comment