Skip to content

Commit e27b7a4

Browse files
committed
Fixed linting issues
1 parent 41785b8 commit e27b7a4

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

example/serializers.py

+2
Original file line numberDiff line numberDiff line change
@@ -260,9 +260,11 @@ class Meta:
260260
def get_first_entry(self, obj):
261261
return obj.entries.first()
262262

263+
263264
class AuthorListSerializer(AuthorSerializer):
264265
pass
265266

267+
266268
class AuthorDetailSerializer(AuthorSerializer):
267269
pass
268270

example/views.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515

1616
from example.models import Author, Blog, Comment, Company, Entry, Project, ProjectType
1717
from example.serializers import (
18-
AuthorSerializer,
19-
AuthorListSerializer,
2018
AuthorDetailSerializer,
19+
AuthorListSerializer,
20+
AuthorSerializer,
2121
BlogDRFSerializer,
2222
BlogSerializer,
2323
CommentSerializer,
@@ -190,7 +190,7 @@ class AuthorViewSet(ModelViewSet):
190190
serializer_classes = {
191191
"list": AuthorListSerializer,
192192
"retrieve": AuthorDetailSerializer}
193-
serializer_class = AuthorSerializer # fallback
193+
serializer_class = AuthorSerializer # fallback
194194

195195
def get_serializer_class(self):
196196
try:

0 commit comments

Comments
 (0)