old_contents: from rest_framework import serializers
  from rest_framework import viewsets, status
  from rest_framework.response import Response
  from rest_framework.decorators import list_route
  from rest_framework.exceptions import ParseError
  from django_rv_apps.apps.believe_his_prophets.models.application import Application
  from django_rv_apps.apps.believe_his_prophets.models.language import Language
  from django_rv_apps.apps.believe_his_prophets_api.views.language_view import LanguageSerializer
  
  from django_filters import rest_framework as django_filters
  from rest_framework import filters
  from datetime import datetime
  
  class ApplicationSerializer(serializers.ModelSerializer):
  
      class Meta:
          model = Application
          fields=('id','version','language',
          'content')
  
  class ApplicationViewSet(viewsets.ModelViewSet):
      queryset = Application.objects.all().prefetch_related('book','language')
      serializer_class = ApplicationSerializer
      filter_backends = (filters.SearchFilter, django_filters.DjangoFilterBackend,)
      filter_fields = ('id','version','content')
      search_fields = ('version',)
  
  
      @list_route(url_path='status')
      def list_status(self, request):
          # Declarando variables e instanciando
          language=''
          # Obteniendo idioma
          param_language=request.query_params.get('language','')
          param_version=request.query_params.get('version','')
          queryset_language = Language.objects.get(code_iso=param_language)
          serializer_language= LanguageSerializer(queryset_language,
                                      many=False)
          obj_language=serializer_language.data
  
          if obj_language:
              # Get de Application
              queryset = Application.objects.filter(
                              version=version,
                              language=param_version,
                              is_active='1'
                              )
              serializer = ApplicationSerializer(queryset, many=True)
              obj_version=serializer.data
              if obj_version:
                  obj_response={
                      'version':obj_version['version'],
                      'content':obj_version['content'],
                      'condition':True
                  }
              else:
                  obj_response={
                      'condition':False
                  }
  
          return Response(obj_response)
  
new_contents: from rest_framework import serializers
  from rest_framework import viewsets, status
  from rest_framework.response import Response
  from rest_framework.decorators import list_route
  from rest_framework.exceptions import ParseError
  from django_rv_apps.apps.believe_his_prophets.models.application import Application
  from django_rv_apps.apps.believe_his_prophets.models.language import Language
  from django_rv_apps.apps.believe_his_prophets_api.views.language_view import LanguageSerializer
  
  from django_filters import rest_framework as django_filters
  from rest_framework import filters
  from datetime import datetime
  
  class ApplicationSerializer(serializers.ModelSerializer):
  
      class Meta:
          model = Application
          fields=('id','version','language',
          'content')
  
  class ApplicationViewSet(viewsets.ModelViewSet):
      queryset = Application.objects.all().prefetch_related('language')
      serializer_class = ApplicationSerializer
      filter_backends = (filters.SearchFilter, django_filters.DjangoFilterBackend,)
      filter_fields = ('id','version','content')
      search_fields = ('version',)
  
  
      @list_route(url_path='status')
      def list_status(self, request):
          # Declarando variables e instanciando
          language=''
          # Obteniendo idioma
          param_language=request.query_params.get('language','')
          param_version=request.query_params.get('version','')
          queryset_language = Language.objects.get(code_iso=param_language)
          serializer_language= LanguageSerializer(queryset_language,
                                      many=False)
          obj_language=serializer_language.data
  
          if obj_language:
              # Get de Application
              queryset = Application.objects.filter(
                              version=version,
                              language=param_version,
                              is_active='1'
                              )
              serializer = ApplicationSerializer(queryset, many=True)
              obj_version=serializer.data
              if obj_version:
                  obj_response={
                      'version':obj_version['version'],
                      'content':obj_version['content'],
                      'condition':True
                  }
              else:
                  obj_response={
                      'condition':False
                  }
  
          return Response(obj_response)
  
subject: Fix de viewset