{"action":"created","issue":{"url":"https://api.github.com/repos/applegrew/django-select2/issues/201","labels_url":"https://api.github.com/repos/applegrew/django-select2/issues/201/labels{/name}","comments_url":"https://api.github.com/repos/applegrew/django-select2/issues/201/comments","events_url":"https://api.github.com/repos/applegrew/django-select2/issues/201/events","html_url":"https://github.com/applegrew/django-select2/pull/201","id":105039030,"number":201,"title":"WIP - Version 5","user":{"login":"codingjoe","id":1772890,"avatar_url":"https://avatars.githubusercontent.com/u/1772890?v=3","gravatar_id":"","url":"https://api.github.com/users/codingjoe","html_url":"https://github.com/codingjoe","followers_url":"https://api.github.com/users/codingjoe/followers","following_url":"https://api.github.com/users/codingjoe/following{/other_user}","gists_url":"https://api.github.com/users/codingjoe/gists{/gist_id}","starred_url":"https://api.github.com/users/codingjoe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codingjoe/subscriptions","organizations_url":"https://api.github.com/users/codingjoe/orgs","repos_url":"https://api.github.com/users/codingjoe/repos","events_url":"https://api.github.com/users/codingjoe/events{/privacy}","received_events_url":"https://api.github.com/users/codingjoe/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-09-05T17:27:50Z","updated_at":"2015-09-27T01:53:34Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/applegrew/django-select2/pulls/201","html_url":"https://github.com/applegrew/django-select2/pull/201","diff_url":"https://github.com/applegrew/django-select2/pull/201.diff","patch_url":"https://github.com/applegrew/django-select2/pull/201.patch"},"body":"# Abstract\r\n\r\nDue to a lack of time, from both my side but also @applegrew and other contributors, I propose a drastic cut regarding a future version. I almost rewrote the entire library to a size of 730 python an almost no javascript code while maintaining the same feature set. This rather drastic change should enable us to ensure future maintenance and to keep up with Django's release cycle.\r\n\r\n## Changes\r\n\r\n### Fields\r\nFields have been completely removed in favour of widgets. As Django has very good ways to define widgets in such as the Meta widgets attribute, there is no need to maintain fields that only have a certain widget set as a default.\r\nDue tu changes in implementation the entire feature set was moved to widgets.\r\n\r\n### Cacheing\r\nThe old caching solution has been completely dropped in favour of django's cache. Also the thread synced id store is gone. Fields do no longer exists, their replacement, widgets, do no longer have to be defined during import time, but can be dynamically created.\r\nThey register them selfs in the cache when being rendered.\r\n\r\n### Select2 v4\r\nI switched to select2 version 4, because of select2v4 support for data-attributes. As a result all \"javascript  hacks\" in python have been removed. Also almost all javascript code is gone.\r\n\r\nNote that heavy fields only work with jquery version 2!"},"comment":{"url":"https://api.github.com/repos/applegrew/django-select2/issues/comments/143512415","html_url":"https://github.com/applegrew/django-select2/pull/201#issuecomment-143512415","issue_url":"https://api.github.com/repos/applegrew/django-select2/issues/201","id":143512415,"user":{"login":"landscape-bot","id":10010231,"avatar_url":"https://avatars.githubusercontent.com/u/10010231?v=3","gravatar_id":"","url":"https://api.github.com/users/landscape-bot","html_url":"https://github.com/landscape-bot","followers_url":"https://api.github.com/users/landscape-bot/followers","following_url":"https://api.github.com/users/landscape-bot/following{/other_user}","gists_url":"https://api.github.com/users/landscape-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/landscape-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/landscape-bot/subscriptions","organizations_url":"https://api.github.com/users/landscape-bot/orgs","repos_url":"https://api.github.com/users/landscape-bot/repos","events_url":"https://api.github.com/users/landscape-bot/events{/privacy}","received_events_url":"https://api.github.com/users/landscape-bot/received_events","type":"User","site_admin":false},"created_at":"2015-09-27T01:53:34Z","updated_at":"2015-09-27T01:53:34Z","body":"[![Code Health](https://landscape.io/badge/229615/landscape.svg?style=flat)](https://landscape.io/diff/217190)\nRepository health increased by 6% when pulling **[f774214](https://github.com/applegrew/django-select2/commit/f7742149c332f44bd45befdbcf85fdbd7991137c) on v5** into **[29c74ae](https://github.com/applegrew/django-select2/commit/29c74ae63e4ece20e7cfba39842f046292259570) on master**.\n\n * [5 new problems were found](https://landscape.io/diff/217190) (including 0 errors and 5 code smells).\n * [38 problems were fixed](https://landscape.io/diff/217190/fixed) (including 4 errors and 33 code smells)."}}