Commit 50905285 authored by KreizerHgz's avatar KreizerHgz
Browse files

CD 60 refactored (dupe import)

parent 88a2046e
"""Contains views for the diets application. These are mostly class-based views.
from rest_framework import generics, mixins
from rest_framework import permissions
from rest_framework import generics, mixins, permissions, filters
from rest_framework.parsers import (
......@@ -10,7 +9,6 @@ from rest_framework.decorators import api_view
from rest_framework.response import Response
from rest_framework.reverse import reverse
from django.db.models import Q
from rest_framework import filters
from diets.parsers import MultipartJsonParser
from diets.permissions import (
......@@ -33,7 +31,8 @@ from rest_framework_simplejwt.tokens import RefreshToken
from rest_framework.response import Response
import json
from collections import namedtuple
import base64, pickle
import base64
import pickle
from django.core.signing import Signer
from rest_framework.filters import OrderingFilter
......@@ -317,7 +316,6 @@ class DietInstanceList(
return qs
class DietInstanceDetail(
......@@ -406,4 +404,3 @@ class DietFileDetail(
def delete(self, request, *args, **kwargs):
return self.destroy(request, *args, **kwargs)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment