Skip to content

Commit 4f6eba3

Browse files
committed
Removed import of unused django.forms.widgets
1 parent 713333d commit 4f6eba3

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

docs/tutorial/1-serialization.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,6 @@ We'll also need to create an initial migration for our snippet model, and sync t
8989

9090
The first thing we need to get started on our Web API is to provide a way of serializing and deserializing the snippet instances into representations such as `json`. We can do this by declaring serializers that work very similar to Django's forms. Create a file in the `snippets` directory named `serializers.py` and add the following.
9191

92-
from django.forms import widgets
9392
from rest_framework import serializers
9493
from snippets.models import Snippet, LANGUAGE_CHOICES, STYLE_CHOICES
9594

0 commit comments

Comments
 (0)