From 7866ab7ec0566dade6d09f2c410cd07d870486ce Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO Date: Wed, 23 Dec 2020 18:25:54 +0100 Subject: [PATCH] Ordering filters are now properly tested Signed-off-by: Yohann D'ANELLO --- apps/api/tests.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/api/tests.py b/apps/api/tests.py index 6d2b09d1..203e592a 100644 --- a/apps/api/tests.py +++ b/apps/api/tests.py @@ -10,12 +10,12 @@ from django.contrib.auth.models import User from django.contrib.contenttypes.models import ContentType from django.db.models.fields.files import ImageFieldFile from django.test import TestCase -from django_filters.rest_framework import DjangoFilterBackend, OrderingFilter +from django_filters.rest_framework import DjangoFilterBackend from member.models import Membership, Club from note.models import NoteClub, NoteUser, Alias, Note from permission.models import PermissionMask, Permission, Role from phonenumbers import PhoneNumber -from rest_framework.filters import SearchFilter +from rest_framework.filters import SearchFilter, OrderingFilter from .viewsets import ContentTypeViewSet, UserViewSet