U
    sc	                     @   s   d dl mZ dd ZdS )    )serializersc              
   C   s:   ddddddddd	d
g
}| |kr6t dd| | S )NZname_ascZ	name_descZquestions_count_ascZquestions_count_descZ	price_ascZ
price_desccreated_at_asccreated_at_descZmodified_at_ascZmodified_at_desczsort_by should be one of z, )r   ValidationErrorjoin)sort_byZallowed_questions_sort_by_items r   4/var/www/wikiazma_server/question_bank/validetors.pyquestion_bank_sort_by_validator   s             r
   N)rest_frameworkr   r
   r   r   r   r	   <module>   s   