{"action":"created","issue":{"url":"https://api.github.com/repos/tomwalker/django_quiz/issues/55","repository_url":"https://api.github.com/repos/tomwalker/django_quiz","labels_url":"https://api.github.com/repos/tomwalker/django_quiz/issues/55/labels{/name}","comments_url":"https://api.github.com/repos/tomwalker/django_quiz/issues/55/comments","events_url":"https://api.github.com/repos/tomwalker/django_quiz/issues/55/events","html_url":"https://github.com/tomwalker/django_quiz/issues/55","id":128214812,"number":55,"title":"Attribute Error","user":{"login":"Sportlich","id":5128061,"avatar_url":"https://avatars.githubusercontent.com/u/5128061?v=3","gravatar_id":"","url":"https://api.github.com/users/Sportlich","html_url":"https://github.com/Sportlich","followers_url":"https://api.github.com/users/Sportlich/followers","following_url":"https://api.github.com/users/Sportlich/following{/other_user}","gists_url":"https://api.github.com/users/Sportlich/gists{/gist_id}","starred_url":"https://api.github.com/users/Sportlich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sportlich/subscriptions","organizations_url":"https://api.github.com/users/Sportlich/orgs","repos_url":"https://api.github.com/users/Sportlich/repos","events_url":"https://api.github.com/users/Sportlich/events{/privacy}","received_events_url":"https://api.github.com/users/Sportlich/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-01-22T18:29:08Z","updated_at":"2016-03-21T11:52:35Z","closed_at":"2016-01-27T16:47:55Z","body":"I installed the app without changing anything into my project, created a test quiz, but when I press the button Start Quiz, I get an error saying - 'int' object has no attribute 'essay_question'.\r\n\r\nAm I doing something wrong? And how could this problem be solved?\r\n\r\nHere's the log:\r\n\r\n```\r\nEnvironment:\r\n\r\n\r\nRequest Method: GET\r\nRequest URL: http://127.0.0.1:8000/quiz/introductoryquiz/take/\r\n\r\nDjango Version: 1.9.1\r\nPython Version: 2.7.10\r\nInstalled Applications:\r\n['django.contrib.admin',\r\n 'django.contrib.auth',\r\n 'django.contrib.contenttypes',\r\n 'django.contrib.sessions',\r\n 'django.contrib.messages',\r\n 'django.contrib.staticfiles',\r\n 'myapp',\r\n 'quiz',\r\n 'essay',\r\n 'multichoice',\r\n 'true_false',\r\n 'bootstrapform']\r\nInstalled Middleware:\r\n['django.middleware.security.SecurityMiddleware',\r\n 'django.contrib.sessions.middleware.SessionMiddleware',\r\n 'django.middleware.common.CommonMiddleware',\r\n 'django.middleware.csrf.CsrfViewMiddleware',\r\n 'django.contrib.auth.middleware.AuthenticationMiddleware',\r\n 'django.contrib.auth.middleware.SessionAuthenticationMiddleware',\r\n 'django.contrib.messages.middleware.MessageMiddleware',\r\n 'django.middleware.clickjacking.XFrameOptionsMiddleware']\r\n\r\n\r\n\r\nTraceback:\r\n\r\nFile \"/home/john/.virtualenvs/lfs/local/lib/python2.7/site-packages/django/core/handlers/base.py\" in get_response\r\n  149.                     response = self.process_exception_by_middleware(e, request)\r\n\r\nFile \"/home/john/.virtualenvs/lfs/local/lib/python2.7/site-packages/django/core/handlers/base.py\" in get_response\r\n  147.                     response = wrapped_callback(request, *callback_args, **callback_kwargs)\r\n\r\nFile \"/home/john/.virtualenvs/lfs/local/lib/python2.7/site-packages/django/views/generic/base.py\" in view\r\n  68.             return self.dispatch(request, *args, **kwargs)\r\n\r\nFile \"/home/john/myapp/quiz/views.py\" in dispatch\r\n  148.                                                         self.quiz)\r\n\r\nFile \"/home/john/myapp/quiz/models.py\" in user_sitting\r\n  345.             sitting = self.new_sitting(user, quiz)\r\n\r\nFile \"/home/john/myapp/quiz/models.py\" in new_sitting\r\n  316.         if len(question_set) == 0:\r\n\r\nFile \"/home/john/.virtualenvs/lfs/local/lib/python2.7/site-packages/django/db/models/query.py\" in __len__\r\n  240.         self._fetch_all()\r\n\r\nFile \"/home/john/.virtualenvs/lfs/local/lib/python2.7/site-packages/django/db/models/query.py\" in _fetch_all\r\n  1074.             self._result_cache = list(self.iterator())\r\n\r\nFile \"/home/john/.virtualenvs/lfs/local/lib/python2.7/site-packages/model_utils/managers.py\" in iterator\r\n  80.                     sub_obj = self._get_sub_obj_recurse(obj, s)\r\n\r\nFile \"/home/john/.virtualenvs/lfs/local/lib/python2.7/site-packages/model_utils/managers.py\" in _get_sub_obj_recurse\r\n  153.             node = getattr(obj, rel)\r\n\r\nException Type: AttributeError at /quiz/introductoryquiz/take/\r\nException Value: 'int' object has no attribute 'essay_question'\r\n```"},"comment":{"url":"https://api.github.com/repos/tomwalker/django_quiz/issues/comments/199239071","html_url":"https://github.com/tomwalker/django_quiz/issues/55#issuecomment-199239071","issue_url":"https://api.github.com/repos/tomwalker/django_quiz/issues/55","id":199239071,"user":{"login":"Randy-Wtw","id":13983485,"avatar_url":"https://avatars.githubusercontent.com/u/13983485?v=3","gravatar_id":"","url":"https://api.github.com/users/Randy-Wtw","html_url":"https://github.com/Randy-Wtw","followers_url":"https://api.github.com/users/Randy-Wtw/followers","following_url":"https://api.github.com/users/Randy-Wtw/following{/other_user}","gists_url":"https://api.github.com/users/Randy-Wtw/gists{/gist_id}","starred_url":"https://api.github.com/users/Randy-Wtw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Randy-Wtw/subscriptions","organizations_url":"https://api.github.com/users/Randy-Wtw/orgs","repos_url":"https://api.github.com/users/Randy-Wtw/repos","events_url":"https://api.github.com/users/Randy-Wtw/events{/privacy}","received_events_url":"https://api.github.com/users/Randy-Wtw/received_events","type":"User","site_admin":false},"created_at":"2016-03-21T11:52:35Z","updated_at":"2016-03-21T11:52:35Z","body":"Thanks, been looking the fix for this bug!"}}