Skip to content

Commit

Permalink
Fix flake8 format
Browse files Browse the repository at this point in the history
  • Loading branch information
yuekui committed Jun 19, 2021
1 parent af2c4a6 commit 7f24ef2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rest_framework/generics.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Generic views that provide commonly needed behaviour.
"""
from typing import Iterable

from django.core.exceptions import ValidationError
from django.db.models.query import QuerySet
from django.http import Http404
Expand Down Expand Up @@ -77,7 +78,7 @@ def get_queryset(self):
# Ensure queryset is re-evaluated on each request.
queryset = queryset.all()
return queryset

def get_prefetch_related(self):
"""
Get the list of prefetch related objects for self.queryset or instance.
Expand Down

0 comments on commit 7f24ef2

Please sign in to comment.