bksun/my-quora-app

Fix all linter issues.

Closed this issue · 0 comments

It would better to get the author in a separate statement.

author = Author.objects.get(user = self.request.user )
question = Question.objects.create(author, question_text = question_text)

question = Question.objects.create(author = Author.objects.get(user = self.request.user ), question_text = question_text)