Hello Sencer
You can add cuatom functions to your serializer to return the data with the zerializer .
For example you can add :
def email_serializer(email):
if !email.endswith("gmail.com"):
raise SerializerError("Error wrong email address : ", email)
This is just an example your functions can look in and way.
In the email field in your serializer you ahould add the "email_serializer" function to the serializers.
Regards
--
Ammar Mohammed
--
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/CACp8TZjwjk6yFAq%2B%3Dw9W6sKeX%3Dg%2Bx8k%3DHJf3bpMpJaOSMqyTAg%40mail.gmail.com.