from rumergy_backend.rumergy.models import DataLogMeasures
from rest_framework import viewsets
from rest_framework import permissions
from rumergy_backend.rumergy.serializers import DataLogMeasuresSerializer


class DataLogMeasuresViewSet(viewsets.ModelViewSet):
    """A viewset for viewing and editing data log measures instances."""

    serializer_class = DataLogMeasuresSerializer
    queryset = DataLogMeasures.objects.all()
    # permission_classes = [permissions.AllowAny] # Only use for testing

from rumergy_backend.rumergy.models import DataLogMeasures
from rest_framework import viewsets
from rest_framework import permissions
from rumergy_backend.rumergy.serializers import DataLogMeasuresSerializer


class DataLogMeasuresViewSet(viewsets.ModelViewSet):
    """A viewset for viewing and editing data log measures instances."""

    serializer_class = DataLogMeasuresSerializer
    queryset = DataLogMeasures.objects.all()
    # permission_classes = [permissions.AllowAny] # Only use for testing

A viewset for viewing and editing data log measures instances. # permission_classes = [permissions.AllowAny] # Only use for testing