__author__ = 'dmorina'

from crowdsourcing.serializers.worker import *
from rest_framework import generics
from rest_framework import status, views as rest_framework_views, viewsets



class WorkerSkillViewSet(viewsets.ModelViewSet):
    from crowdsourcing.models import WorkerSkill
    queryset = WorkerSkill.objects.all()
    serializer_class = WorkerSkillSerializer
    

class WorkerViewSet(viewsets.ModelViewSet):
    from crowdsourcing.models import Worker
    queryset = Worker.objects.all()
    serializer_class = WorkerSerializer
    

class SkillViewSet(viewsets.ModelViewSet):
    from crowdsourcing.models import Skill
    queryset = Skill.objects.all()
    serializer_class = SkillSerializer
    

class TaskViewSet(viewsets.ModelViewSet):
    from crowdsourcing.models import Task
    queryset = Task.objects.all()
    serializer_class = TaskSerializer

class TaskWorkerViewSet(viewsets.ModelViewSet):
    from crowdsourcing.models import TaskWorker
    queryset = TaskWorker.objects.all()
    serializer_class = TaskWorkerSerializer

class TaskWorkerResultViewSet(viewsets.ModelViewSet):
    from crowdsourcing.models import TaskWorkerResult
    queryset = TaskWorkerResult.objects.all()
    serializer_class = TaskWorkerResultSerializer


class WorkerModuleApplicationViewSet(viewsets.ModelViewSet):
    from crowdsourcing.models import WorkerModuleApplication
    queryset = WorkerModuleApplication.objects.all()
    serializer_class = WorkerModuleApplicationSerializer

class QualificationViewSet(viewsets.ModelViewSet):
    from crowdsourcing.models import Qualification
    queryset = Qualification.objects.all()
    serializer_class = QualificationSerializer

class CurrencyViewSet(viewsets.ModelViewSet):
    from crowdsourcing.models import Currency
    queryset = Currency.objects.all()
    serializer_class = CurrencySerializer



__author__ = 'dmorina'

from crowdsourcing.serializers.worker import *
from rest_framework import generics
from rest_framework import status, views as rest_framework_views, viewsets



class WorkerSkillViewSet(viewsets.ModelViewSet):
    from crowdsourcing.models import WorkerSkill
    queryset = WorkerSkill.objects.all()
    serializer_class = WorkerSkillSerializer
    

class WorkerViewSet(viewsets.ModelViewSet):
    from crowdsourcing.models import Worker
    queryset = Worker.objects.all()
    serializer_class = WorkerSerializer
    

class SkillViewSet(viewsets.ModelViewSet):
    from crowdsourcing.models import Skill
    queryset = Skill.objects.all()
    serializer_class = SkillSerializer
    

class TaskWorkerViewSet(viewsets.ModelViewSet):
    from crowdsourcing.models import TaskWorker
    queryset = TaskWorker.objects.all()
    serializer_class = TaskWorkerSerializer

class TaskWorkerResultViewSet(viewsets.ModelViewSet):
    from crowdsourcing.models import TaskWorkerResult
    queryset = TaskWorkerResult.objects.all()
    serializer_class = TaskWorkerResultSerializer


class WorkerModuleApplicationViewSet(viewsets.ModelViewSet):
    from crowdsourcing.models import WorkerModuleApplication
    queryset = WorkerModuleApplication.objects.all()
    serializer_class = WorkerModuleApplicationSerializer

class QualificationViewSet(viewsets.ModelViewSet):
    from crowdsourcing.models import Qualification
    queryset = Qualification.objects.all()
    serializer_class = QualificationSerializer

class CurrencyViewSet(viewsets.ModelViewSet):
    from crowdsourcing.models import Currency
    queryset = Currency.objects.all()
    serializer_class = CurrencySerializer



Update worker.py