text: from rest_framework import viewsets, mixins
  from rest_framework.authentication import TokenAuthentication
  from rest_framework.permissions import IsAuthenticated
  
  from core.models import Tag
  
  from recipe import serializers
  
  class TagViewSet(viewsets.GenericViewSet,
                   mixins.ListModelMixin,
                   mixins.CreateModelMixin):
      """MANAGE TAGS IN THE DATABASE"""
      authentication_classes = (TokenAuthentication,)
      permission_classes = (IsAuthenticated,)
      queryset = Tag.objects.all()
      serializer_class = serializers.TagSerializer
  
      def get_query_set(self):
          """RETURN OBJECTS FOR THE CURRENT AUTHENTICATED USER ONLY"""
          return self.queryset.filter(user=self.request.user).order_by('-name')
  
      def perform_create(self, serializer):
          """CREATE A NEW TAG"""
          serializer.save(user=self.request.user)