mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-07-22 22:19:52 +03:00
Merge a33aa23484
into 166025c0fc
This commit is contained in:
commit
9e9e667b07
|
@ -201,7 +201,7 @@ Open the file `snippets/serializers.py` again, and edit the `SnippetSerializer`
|
|||
class SnippetSerializer(serializers.ModelSerializer):
|
||||
class Meta:
|
||||
model = Snippet
|
||||
fields = ('pk', 'title', 'code', 'linenos', 'language', 'style')
|
||||
fields = ('id', 'title', 'code', 'linenos', 'language', 'style')
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user