{"action":"created","issue":{"url":"https://api.github.com/repos/blreams/collegefootballpick10/issues/13","labels_url":"https://api.github.com/repos/blreams/collegefootballpick10/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/blreams/collegefootballpick10/issues/13/comments","events_url":"https://api.github.com/repos/blreams/collegefootballpick10/issues/13/events","html_url":"https://github.com/blreams/collegefootballpick10/issues/13","id":91629300,"number":13,"title":"Need to incorporate Week model into Game model","user":{"login":"blreams","id":5880937,"avatar_url":"https://avatars.githubusercontent.com/u/5880937?v=3","gravatar_id":"","url":"https://api.github.com/users/blreams","html_url":"https://github.com/blreams","followers_url":"https://api.github.com/users/blreams/followers","following_url":"https://api.github.com/users/blreams/following{/other_user}","gists_url":"https://api.github.com/users/blreams/gists{/gist_id}","starred_url":"https://api.github.com/users/blreams/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blreams/subscriptions","organizations_url":"https://api.github.com/users/blreams/orgs","repos_url":"https://api.github.com/users/blreams/repos","events_url":"https://api.github.com/users/blreams/events{/privacy}","received_events_url":"https://api.github.com/users/blreams/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/blreams/collegefootballpick10/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"closed","locked":false,"assignee":{"login":"blreams","id":5880937,"avatar_url":"https://avatars.githubusercontent.com/u/5880937?v=3","gravatar_id":"","url":"https://api.github.com/users/blreams","html_url":"https://github.com/blreams","followers_url":"https://api.github.com/users/blreams/followers","following_url":"https://api.github.com/users/blreams/following{/other_user}","gists_url":"https://api.github.com/users/blreams/gists{/gist_id}","starred_url":"https://api.github.com/users/blreams/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blreams/subscriptions","organizations_url":"https://api.github.com/users/blreams/orgs","repos_url":"https://api.github.com/users/blreams/repos","events_url":"https://api.github.com/users/blreams/events{/privacy}","received_events_url":"https://api.github.com/users/blreams/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2015-06-28T19:22:27Z","updated_at":"2015-06-29T03:04:49Z","closed_at":"2015-06-29T03:04:49Z","body":"When I was first putting together the models, I failed to see the signifcance of the Week model. I understand now that the Week model is the thing that ties 10 games into a particular week (need to do that instead of storing game_year and game_week.\r\n\r\nI need to make some basic changes to stage_history.py as well as pick10/models.py"},"comment":{"url":"https://api.github.com/repos/blreams/collegefootballpick10/issues/comments/116401922","html_url":"https://github.com/blreams/collegefootballpick10/issues/13#issuecomment-116401922","issue_url":"https://api.github.com/repos/blreams/collegefootballpick10/issues/13","id":116401922,"user":{"login":"blreams","id":5880937,"avatar_url":"https://avatars.githubusercontent.com/u/5880937?v=3","gravatar_id":"","url":"https://api.github.com/users/blreams","html_url":"https://github.com/blreams","followers_url":"https://api.github.com/users/blreams/followers","following_url":"https://api.github.com/users/blreams/following{/other_user}","gists_url":"https://api.github.com/users/blreams/gists{/gist_id}","starred_url":"https://api.github.com/users/blreams/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blreams/subscriptions","organizations_url":"https://api.github.com/users/blreams/orgs","repos_url":"https://api.github.com/users/blreams/repos","events_url":"https://api.github.com/users/blreams/events{/privacy}","received_events_url":"https://api.github.com/users/blreams/received_events","type":"User","site_admin":false},"created_at":"2015-06-29T03:04:49Z","updated_at":"2015-06-29T03:04:49Z","body":"Ok, I think I have this implemented correctly now. As I was doing this, I decided to get rid of all the existing DB migrations. Not sure that was necessary, but it feels better starting with a clean slate from here.\r\n\r\nSeveral things changed as a result of simply replacing Game.game_year/Game.game_week with a foreignkey for Week. There were several helper functions in pick10/models.py that changed as a result. Also, I had to tweak pick10/admin.py. Lastly, I had some housecleaning in stage_history.py. \r\n\r\nBut, I think it is all working. You will definitely need to delete your DB and start from scratch. I think I will add a page to the wiki describing how to do that."}}