{"action":"created","issue":{"url":"https://api.github.com/repos/FreedomCoop/valuenetwork/issues/32","repository_url":"https://api.github.com/repos/FreedomCoop/valuenetwork","labels_url":"https://api.github.com/repos/FreedomCoop/valuenetwork/issues/32/labels{/name}","comments_url":"https://api.github.com/repos/FreedomCoop/valuenetwork/issues/32/comments","events_url":"https://api.github.com/repos/FreedomCoop/valuenetwork/issues/32/events","html_url":"https://github.com/FreedomCoop/valuenetwork/issues/32","id":163672744,"number":32,"title":"Upgrading from django 1.7 to 1.8","user":{"login":"XaviP","id":6750293,"avatar_url":"https://avatars.githubusercontent.com/u/6750293?v=3","gravatar_id":"","url":"https://api.github.com/users/XaviP","html_url":"https://github.com/XaviP","followers_url":"https://api.github.com/users/XaviP/followers","following_url":"https://api.github.com/users/XaviP/following{/other_user}","gists_url":"https://api.github.com/users/XaviP/gists{/gist_id}","starred_url":"https://api.github.com/users/XaviP/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/XaviP/subscriptions","organizations_url":"https://api.github.com/users/XaviP/orgs","repos_url":"https://api.github.com/users/XaviP/repos","events_url":"https://api.github.com/users/XaviP/events{/privacy}","received_events_url":"https://api.github.com/users/XaviP/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-07-04T13:03:19Z","updated_at":"2016-07-04T13:16:58Z","closed_at":null,"body":"It seems that django 1.8 is the last LTS version, so trying to make a last upgrade. You can find code in:\r\nhttps://github.com/XaviP/valuenetwork/tree/django18\r\n\r\n- Changed django 1.8 in requirements.txt\r\n\r\n- Changed name \"sub-agents\" by a valid python name, with:\r\n```\r\ngrep -rl \"sub-agents\" ./ | xargs sed -i s@'sub-agents'@'sub_agents'@g\r\n```\r\n- The system check running *makemigrations* throws a warning that I don't really understand:\r\n```\r\nSystem check identified some issues:\r\n\r\nWARNINGS:\r\naccount.EmailConfirmation.created: (fields.W161) Fixed default value provided.\r\n\tHINT: It seems you set a fixed date / time / datetime value as default for this field. This may not be what you want. If you want to have the current date as default, use \"django.utils.timezone.now\"\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/FreedomCoop/valuenetwork/issues/comments/230288364","html_url":"https://github.com/FreedomCoop/valuenetwork/issues/32#issuecomment-230288364","issue_url":"https://api.github.com/repos/FreedomCoop/valuenetwork/issues/32","id":230288364,"user":{"login":"bhaugen","id":117439,"avatar_url":"https://avatars.githubusercontent.com/u/117439?v=3","gravatar_id":"","url":"https://api.github.com/users/bhaugen","html_url":"https://github.com/bhaugen","followers_url":"https://api.github.com/users/bhaugen/followers","following_url":"https://api.github.com/users/bhaugen/following{/other_user}","gists_url":"https://api.github.com/users/bhaugen/gists{/gist_id}","starred_url":"https://api.github.com/users/bhaugen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bhaugen/subscriptions","organizations_url":"https://api.github.com/users/bhaugen/orgs","repos_url":"https://api.github.com/users/bhaugen/repos","events_url":"https://api.github.com/users/bhaugen/events{/privacy}","received_events_url":"https://api.github.com/users/bhaugen/received_events","type":"User","site_admin":false},"created_at":"2016-07-04T13:16:58Z","updated_at":"2016-07-04T13:16:58Z","body":"Code is most likely still using datetime.date.today() or something like that, which is apparently superceded by django.utils.timezone.now in 1.8. I'll need to catch up (get 1.7 migrations cleaned up) before I can research and fix this one. django.utils.timezone.now probably gets you a datetime, and the fields probably only allow a date. But then the django datefield might have changed, too."}}
{"actor":{"display_login":"bhaugen"}}