
    Gg                     x   d dl mZ ddlmZmZmZmZ  ej                  e       G d dej                               Z	 ej                  e       G d dej                               Z
 ej                  e       G d d	ej                               Z ej                  e       G d
 dej                               Zy)    )admin   )QuizQuestionOptionAnswerc                       e Zd ZdZdZdZdZy)	QuizAdmin)nameis_published
created_at
updated_at)r   )r   r   r   r   r   N)__name__
__module____qualname__list_displaysearch_fieldslist_filterreadonly_fields     6/var/www/peopleoo.sandbox-dev.co.uk/apps/quiz/admin.pyr
   r
      s    GLM>K2Or   r
   c                        e Zd ZdZdZdZdZdZy)QuestionAdmin)question_textquestion_typequizr   r   )r   
quiz__name)r   r   r   r   )r   r   Nr   r   r   r   r   r   autocomplete_fieldsr   r   r   r   r   r      s    YL3MGK#2Or   r   c                        e Zd ZdZdZdZdZdZy)OptionAdmin)option_textquestionr   r   )r$   question__question_textr   )r%   Nr    r   r   r   r#   r#      s    JL>M.K'2Or   r#   c                   $    e Zd ZdZdZdZdZdZdZy)AnswerAdmin)profiler%   answer_typer   r   )profile__user__usernamer&   )r*   r   r   )r)   r%   selected_option)selected_optionsr   N)	r   r   r   r   r   r   r!   filter_horizontalr   r   r   r   r(   r(      s"    ULJM=KD-2Or   r(   N)django.contribr   modelsr   r   r   r   register
ModelAdminr
   r   r#   r(   r   r   r   <module>r3      s      2 2 3   3 3 3E$$ 3 3 3%"" 3 3 3%"" 3 3r   