{"issue":{"state":"open","pull_request":{"diff_url":null,"html_url":null,"patch_url":null},"user":{"avatar_url":"https://secure.gravatar.com/avatar/cc018843cc6b732aa03125d0968b946f?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"cc018843cc6b732aa03125d0968b946f","url":"https://api.github.com/users/eugiellimpin","login":"eugiellimpin","id":431442},"milestone":null,"assignee":null,"labels":[],"updated_at":"2011-11-01T20:43:22Z","comments":0,"closed_at":null,"url":"https://api.github.com/repos/hjwp/Test-Driven-Django-Tutorial/issues/5","body":"I hope I'm not annoying you with all these issues. If so, tell me and I'll stop and I'll keep them to myself. ;)\r\n\r\nUnder section **Our first unit tests: testing a new \"Poll\" model** even after defining the pub_date attrib in the model Poll, the test fails saying ```IntegrityError: polls_poll.pub_date may not be Null```\r\n\r\nInstead of\r\n\r\n        # start by creating a new Poll object with its \"question\" set\r\n        poll = Poll()\r\n        poll.question = \"What's up?\"\r\n\r\n        # check we can save it to the database\r\n        poll.save()\r\n\r\n        # check we can adjust its publication date\r\n        poll.pub_date = datetime.datetime(2012, 12, 25)\r\n        poll.save()\r\n\r\nI believe it should be\r\n\r\n        # start by creating a new Poll object with its \"question\" set\r\n        poll = Poll()\r\n        poll.question = \"What's up?\"\r\n\r\n        # check we can adjust its publication date\r\n        poll.pub_date = datetime.datetime(2012, 12, 25)\r\n\r\n        # check we can save it to the database\r\n        poll.save()","html_url":"https://github.com/hjwp/Test-Driven-Django-Tutorial/issues/5","title":"Test fails even after defining the pub_date attrib","number":5,"id":2114840,"created_at":"2011-11-01T20:43:22Z"},"action":"opened"}