﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
27715	[Tutorial - part 6.] Lack of saving created question into db	Mieszko Bańczerowski	nobody	"I've been wondering for few hours why view tests fails despite the fact, everything is done the way tutorial shows: https://docs.djangoproject.com/en/1.10/intro/tutorial05/

New-created Question objects had not been saved in temporary test database.

Now, polls/tests.py starts from:
{{{
def create_question(question_text, days):
    time = timezone.now() + datetime.timedelta(days=days)
    return Question.objects.create(question_text=question_text, pub_date=time)
}}}

For me works just:
{{{
def create_question(question_text, days):
    time = timezone.now() + datetime.timedelta(days=days)
    q = Question.objects.create(question_text=question_text, pub_date=time)
    q.save()
}}}
"	Bug	closed	Documentation	1.10	Normal	invalid	tutorial		Unreviewed	0	0	0	0	1	0
