{"action":"opened","issue":{"url":"https://api.github.com/repos/thelabnyc/wagtail_blog/issues/8","labels_url":"https://api.github.com/repos/thelabnyc/wagtail_blog/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/thelabnyc/wagtail_blog/issues/8/comments","events_url":"https://api.github.com/repos/thelabnyc/wagtail_blog/issues/8/events","html_url":"https://github.com/thelabnyc/wagtail_blog/issues/8","id":87605968,"number":8,"title":"Cannot save blog page","user":{"login":"mukulrawat1986","id":2252371,"avatar_url":"https://avatars.githubusercontent.com/u/2252371?v=3","gravatar_id":"","url":"https://api.github.com/users/mukulrawat1986","html_url":"https://github.com/mukulrawat1986","followers_url":"https://api.github.com/users/mukulrawat1986/followers","following_url":"https://api.github.com/users/mukulrawat1986/following{/other_user}","gists_url":"https://api.github.com/users/mukulrawat1986/gists{/gist_id}","starred_url":"https://api.github.com/users/mukulrawat1986/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mukulrawat1986/subscriptions","organizations_url":"https://api.github.com/users/mukulrawat1986/orgs","repos_url":"https://api.github.com/users/mukulrawat1986/repos","events_url":"https://api.github.com/users/mukulrawat1986/events{/privacy}","received_events_url":"https://api.github.com/users/mukulrawat1986/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-06-12T04:47:51Z","updated_at":"2015-06-12T04:47:51Z","closed_at":null,"body":"When trying to save a new blog page I get the error \r\n```\r\nEnvironment:\r\n\r\n\r\nRequest Method: POST\r\nRequest URL: http://127.0.0.1:8000/admin/pages/new/blog/blogpage/5/\r\n\r\nDjango Version: 1.7.8\r\nPython Version: 2.7.6\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 'compressor',\r\n 'taggit',\r\n 'modelcluster',\r\n 'wagtail.wagtailcore',\r\n 'wagtail.wagtailadmin',\r\n 'wagtail.wagtaildocs',\r\n 'wagtail.wagtailsnippets',\r\n 'wagtail.wagtailusers',\r\n 'wagtail.wagtailsites',\r\n 'wagtail.wagtailimages',\r\n 'wagtail.wagtailembeds',\r\n 'wagtail.wagtailsearch',\r\n 'wagtail.wagtailredirects',\r\n 'wagtail.wagtailforms',\r\n 'core',\r\n 'blog')\r\nInstalled Middleware:\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.messages.middleware.MessageMiddleware',\r\n 'django.middleware.clickjacking.XFrameOptionsMiddleware',\r\n 'wagtail.wagtailcore.middleware.SiteMiddleware',\r\n 'wagtail.wagtailredirects.middleware.RedirectMiddleware')\r\n\r\n\r\nTraceback:\r\nFile \"/home/vagrant/venv/wagtail-greytip/local/lib/python2.7/site-packages/django/core/handlers/base.py\" in get_response\r\n  111.                     response = wrapped_callback(request, *callback_args, **callback_kwargs)\r\nFile \"/home/vagrant/venv/wagtail-greytip/local/lib/python2.7/site-packages/django/contrib/auth/decorators.py\" in _wrapped_view\r\n  21.                 return view_func(request, *args, **kwargs)\r\nFile \"/home/vagrant/venv/wagtail-greytip/local/lib/python2.7/site-packages/wagtail/wagtailadmin/views/pages.py\" in create\r\n  204.             page = form.save(commit=False)\r\nFile \"/home/vagrant/venv/wagtail-greytip/local/lib/python2.7/site-packages/modelcluster/forms.py\" in save\r\n  269.             self.save_m2m()\r\nFile \"/home/vagrant/venv/wagtail-greytip/local/lib/python2.7/site-packages/django/forms/models.py\" in save_m2m\r\n  100.                 f.save_form_data(instance, cleaned_data[f.name])\r\nFile \"/home/vagrant/venv/wagtail-greytip/local/lib/python2.7/site-packages/django/db/models/fields/related.py\" in save_form_data\r\n  2298.         setattr(instance, self.attname, data)\r\nFile \"/home/vagrant/venv/wagtail-greytip/local/lib/python2.7/site-packages/django/db/models/fields/related.py\" in __set__\r\n  1186.             raise AttributeError(\"Cannot set values on a ManyToManyField which specifies an intermediary model.  Use %s.%s's Manager instead.\" % (opts.app_label, opts.object_name))\r\n\r\nException Type: AttributeError at /admin/pages/new/blog/blogpage/5/\r\nException Value: Cannot set values on a ManyToManyField which specifies an intermediary model.  Use blog.BlogCategoryBlogPage's Manager instead.\r\n```\r\nBy commenting out the lines \r\n\r\n```\r\n blog_categories = models.ManyToManyField(\r\n BlogCategory, through=BlogCategoryBlogPage, blank=True)\r\n```\r\n\r\nthe error is removed and page saving works. Please look into it."}}