# Path: assessment/models.py
# class Choice(TranslatableModel):
#     _uid = models.UUIDField(
#         primary_key=True,
#         editable=False,
#         default=uuid.uuid4,
#     )
# 
#     translations = TranslatedFields(
#         value=models.CharField(_("value"), max_length=512),
#     )
# 
#     question = models.ForeignKey(
#         Question,
#         related_name='choices',
#         verbose_name=_("question"),
#         on_delete=models.CASCADE,
#     )
# 
#     is_correct = models.BooleanField(
#         _("correct"),
#         default=False,
#     )
# 
#     class Meta:
#         app_label = 'assessment'
#         verbose_name = _('choice')
#         verbose_name_plural = _('choices')
# 
#     def __str__(self):
#         return self.value


import logging
from rest_framework import status
from rest_framework.decorators import api_view
from rest_framework.response import Response
from assessment.models import Choice
        return Response(response_data, status=status.HTTP_200_OK)


@api_view(['PUT', ])
def update_choice(request, uuid):
    """
    """
    if request.method == 'PUT':
        response_data = {"details": "not implemented"}
        return Response(response_data, status=status.HTTP_200_OK)


@api_view(['GET', ])
def list_choices(request):
    """
    """
    if request.method == 'GET':
        response_data = {"details": "not implemented"}
        return Response(response_data, status=status.HTTP_200_OK)


@api_view(['DELETE', ])
def delete_choice(request, uuid):
    """
    delete a single choice if the request is from the choice owner
    """

    if request.user.is_authenticated:
        try:
            choice = Choice.objects.get(pk=uuid, admin=request.user)

# Path: assessment/models.py
# class Choice(TranslatableModel):
#     _uid = models.UUIDField(
#         primary_key=True,
#         editable=False,
#         default=uuid.uuid4,
#     )
# 
#     translations = TranslatedFields(
#         value=models.CharField(_("value"), max_length=512),
#     )
# 
#     question = models.ForeignKey(
#         Question,
#         related_name='choices',
#         verbose_name=_("question"),
#         on_delete=models.CASCADE,
#     )
# 
#     is_correct = models.BooleanField(
#         _("correct"),
#         default=False,
#     )
# 
#     class Meta:
#         app_label = 'assessment'
#         verbose_name = _('choice')
#         verbose_name_plural = _('choices')
# 
#     def __str__(self):
#         return self.value


# Path: assessment/views/api/choice.py
import logging
from rest_framework import status
from rest_framework.decorators import api_view
from rest_framework.response import Response
from assessment.models import Choice

        return Response(response_data, status=status.HTTP_200_OK)


@api_view(['PUT', ])
def update_choice(request, uuid):
    """
    """
    if request.method == 'PUT':
        response_data = {"details": "not implemented"}
        return Response(response_data, status=status.HTTP_200_OK)


@api_view(['GET', ])
def list_choices(request):
    """
    """
    if request.method == 'GET':
        response_data = {"details": "not implemented"}
        return Response(response_data, status=status.HTTP_200_OK)


@api_view(['DELETE', ])
def delete_choice(request, uuid):
    """
    delete a single choice if the request is from the choice owner
    """

    if request.user.is_authenticated:
        try:
            choice = Choice.objects.get(pk=uuid, admin=request.user)

        except (Choice.DoesNotExist, ValueError):