{"action":"opened","issue":{"url":"https://api.github.com/repos/nephila/djangocms-blog/issues/395","repository_url":"https://api.github.com/repos/nephila/djangocms-blog","labels_url":"https://api.github.com/repos/nephila/djangocms-blog/issues/395/labels{/name}","comments_url":"https://api.github.com/repos/nephila/djangocms-blog/issues/395/comments","events_url":"https://api.github.com/repos/nephila/djangocms-blog/issues/395/events","html_url":"https://github.com/nephila/djangocms-blog/issues/395","id":274057675,"number":395,"title":"Problem accessing config values","user":{"login":"aikipooh","id":26327181,"avatar_url":"https://avatars1.githubusercontent.com/u/26327181?v=4","gravatar_id":"","url":"https://api.github.com/users/aikipooh","html_url":"https://github.com/aikipooh","followers_url":"https://api.github.com/users/aikipooh/followers","following_url":"https://api.github.com/users/aikipooh/following{/other_user}","gists_url":"https://api.github.com/users/aikipooh/gists{/gist_id}","starred_url":"https://api.github.com/users/aikipooh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aikipooh/subscriptions","organizations_url":"https://api.github.com/users/aikipooh/orgs","repos_url":"https://api.github.com/users/aikipooh/repos","events_url":"https://api.github.com/users/aikipooh/events{/privacy}","received_events_url":"https://api.github.com/users/aikipooh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-11-15T07:18:21Z","updated_at":"2017-11-15T07:18:21Z","closed_at":null,"author_association":"NONE","body":"I've just installed djangocms-blog, following the installation steps, but I've exceptions of the same nature all around. I'm not sure which module to blame, but hope here you have some ideas:)\r\n\r\n>   File \"/home/pooh/work/venv/lib64/python3.5/site-packages/aldryn_apphooks_config/models.py\", line 54, in __getattr__\r\n    return getattr(self.app_data.config, item)\r\n  File \"/home/pooh/work/venv/lib64/python3.5/site-packages/app_data/containers.py\", line 159, in __getattr__\r\n    return self.__getitem__(name)\r\n  File \"/home/pooh/work/venv/lib64/python3.5/site-packages/app_data/containers.py\", line 146, in __getitem__\r\n    self._attr_cache[name] = field.clean(self._data.get(name, field.initial))\r\n  File \"/home/pooh/work/venv/lib64/python3.5/site-packages/django/forms/fields.py\", line 161, in clean\r\n    self.validate(value)\r\n  File \"/home/pooh/work/venv/lib64/python3.5/site-packages/django/forms/fields.py\", line 823, in validate\r\n    params={'value': value},\r\ndjango.core.exceptions.ValidationError: [\"Select a valid choice. ['Blog'] is not one of the available choices.\"]\r\n\r\nI've poked around, indeed, the values from the config are read as lists, not strings. I've tried modifying the respective places to use the string value from the list, and it works.\r\nIn the DB it's like this:\r\n> |  1 | djangocms_blog.cms_appconfig.BlogConfig | Blog      | {\"config\": {\"use_abstract\": null, \"og_type\": [\"Article\"], \"send_knock_update\": null, \"paginate_by\": \"10\", \"default_published\": null, \"og_author_url\": \"get_author_url\", \"object_type\": [\"Article\"], \"gplus_author\": \"get_author_gplus\", \"url_patterns\": [\"short_date\"], \"sitemap_changefreq\": [\"monthly\"], \"og_author\": \"get_author_name\", \"gplus_type\": [\"Blog\"], \"use_placeholder\": null, \"og_app_id\": null, \"set_author\": null, \"sitemap_priority\": \"0.5\", \"template_prefix\": null, \"twitter_author\": \"get_author_twitter\", \"send_knock_create\": null, \"og_profile_id\": null, \"og_publisher\": null, \"twitter_type\": [\"summary\"], \"twitter_site\": null, \"menu_structure\": [\"complete\"]}} |\r\n\r\nHere I'm not sure what is the reason to store arrays instead of values, and therefore what's the best approach to fix it, can you please help?\r\n\r\ndjango-1.11.6\r\ndjango-cms (3.4.5)\r\ndjangocms-blog (0.9b10) — from git"}}
{"actor":{"display_login":"aikipooh"}}