
    wf                     P    d dl mZ d dlmZ d dlmZ  G d dej                  ZdS )    )make_password)serializers)	Customersc                   .    e Zd Z G d d          Zd ZdS )CustomerRegistrationSerializerc                       e Zd ZeZg dZdS )#CustomerRegistrationSerializer.Meta)password
first_name	last_namegenderheight_feetheight_inchesweightaddress_line1address_line2citystatepinphoneemailprofile_image
valid_uptoregistration_dateemergency_phone1emergency_email1emergency_name1emergency_phone2emergency_email2emergency_name2primary_physician_nameprimary_physician_contactblood_groupmedical_history	allergiesN)__name__
__module____qualname__r   modelfields     rD:\MyProjects\RESCUE_SCANNER\qr_onkar_130624\qr_onkar\customer_api\serializers\customer_registration_serializer.pyMetar	      s'        ^ ^ ^r,   r.   c                 r    |rt          |          dk     rt          j        d          t          |          S )N   z,Password must be at least 4 characters long.)lenr   ValidationErrorr   )selfvalues     r-   validate_passwordz0CustomerRegistrationSerializer.validate_password   s9     	^E

Q-.\]]]U###r,   N)r&   r'   r(   r.   r5   r+   r,   r-   r   r      sS        ^ ^ ^ ^ ^ ^ ^ ^$ $ $ $ $r,   r   N)django.contrib.auth.hashersr   rest_frameworkr   accounts.modelsr   ModelSerializerr   r+   r,   r-   <module>r:      sr    5 5 5 5 5 5 & & & & & & % % % % % %$ $ $ $ $[%@ $ $ $ $ $r,   