Skip to content

Commit

Permalink
Merge pull request #62 from xarg/patch-1
Browse files Browse the repository at this point in the history
There is no data param in create
  • Loading branch information
seocam committed May 22, 2017
2 parents 099c637 + 47d2d5c commit 1e9284d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/tutorial.rst
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,7 @@ adding the ``is_authenticated`` method.::
def detail(self, pk):
return Post.objects.get(id=pk)

def create(self, data):
def create(self):
return Post.objects.create(
title=self.data['title'],
user=User.objects.get(username=self.data['author']),
Expand Down

0 comments on commit 1e9284d

Please sign in to comment.