Closed chirathr closed 5 years ago
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)
https://github.com/bksun/my-quora-app/blob/79af6ea623dd5487eafca9c35910e7d4fdfcdcee/myquora/views.py#L125
It would better to get the author in a separate statement.
https://github.com/bksun/my-quora-app/blob/79af6ea623dd5487eafca9c35910e7d4fdfcdcee/myquora/views.py#L125