{"action":"created","issue":{"url":"https://api.github.com/repos/mvillis/measure-mate/issues/66","repository_url":"https://api.github.com/repos/mvillis/measure-mate","labels_url":"https://api.github.com/repos/mvillis/measure-mate/issues/66/labels{/name}","comments_url":"https://api.github.com/repos/mvillis/measure-mate/issues/66/comments","events_url":"https://api.github.com/repos/mvillis/measure-mate/issues/66/events","html_url":"https://github.com/mvillis/measure-mate/issues/66","id":125871670,"number":66,"title":"Add a team construct","user":{"login":"mvillis","id":3509371,"avatar_url":"https://avatars.githubusercontent.com/u/3509371?v=3","gravatar_id":"","url":"https://api.github.com/users/mvillis","html_url":"https://github.com/mvillis","followers_url":"https://api.github.com/users/mvillis/followers","following_url":"https://api.github.com/users/mvillis/following{/other_user}","gists_url":"https://api.github.com/users/mvillis/gists{/gist_id}","starred_url":"https://api.github.com/users/mvillis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mvillis/subscriptions","organizations_url":"https://api.github.com/users/mvillis/orgs","repos_url":"https://api.github.com/users/mvillis/repos","events_url":"https://api.github.com/users/mvillis/events{/privacy}","received_events_url":"https://api.github.com/users/mvillis/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mvillis/measure-mate/labels/in%20progress","name":"in progress","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2016-01-11T04:37:33Z","updated_at":"2016-02-27T07:38:48Z","closed_at":null,"body":"Team --> The bunch of people doing an assessment together - responsible for the assessment.\r\n\r\nMaybe this is a group of labels?"},"comment":{"url":"https://api.github.com/repos/mvillis/measure-mate/issues/comments/189600749","html_url":"https://github.com/mvillis/measure-mate/issues/66#issuecomment-189600749","issue_url":"https://api.github.com/repos/mvillis/measure-mate/issues/66","id":189600749,"user":{"login":"rloomans","id":92133,"avatar_url":"https://avatars.githubusercontent.com/u/92133?v=3","gravatar_id":"","url":"https://api.github.com/users/rloomans","html_url":"https://github.com/rloomans","followers_url":"https://api.github.com/users/rloomans/followers","following_url":"https://api.github.com/users/rloomans/following{/other_user}","gists_url":"https://api.github.com/users/rloomans/gists{/gist_id}","starred_url":"https://api.github.com/users/rloomans/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rloomans/subscriptions","organizations_url":"https://api.github.com/users/rloomans/orgs","repos_url":"https://api.github.com/users/rloomans/repos","events_url":"https://api.github.com/users/rloomans/events{/privacy}","received_events_url":"https://api.github.com/users/rloomans/received_events","type":"User","site_admin":false},"created_at":"2016-02-27T07:38:48Z","updated_at":"2016-02-27T07:38:48Z","body":"I wonder if doing a flush, migrate and loaddata will resolve it.\r\n\r\n--\r\nRobert Loomans\r\n\r\nOn 27 Feb 2016, at 17:34, Mike Villis <notifications@github.com<mailto:notifications@github.com>> wrote:\r\n\r\n\r\napologies.... the reason in fixtures failed was because the migrate failed\r\n\r\ndjango.db.utils.IntegrityError: insert or update on table \"measure_mate_assessment\" violates foreign key constraint \"measure_mate_asses_template_id_a871e848_fk_measure_mate_team_id\"\r\nDETAIL:  Key (template_id)=(1) is not present in table \"measure_mate_team\".\r\nInstalled 121 object(s) from 4 fixture(s)\r\nTraceback (most recent call last):\r\n\r\n\r\nlooks like form validation fails for assessments because the model does not include blank=True.\r\nhttps://docs.djangoproject.com/en/1.9/ref/models/fields/#blank\r\n\r\nI have a feeling that the issue may be because we have the same related_name in the assessment model? I don't understand why there would be a constraint linking template id with team id:\r\n\r\n—\r\nReply to this email directly or view it on GitHub<https://github.com/mvillis/measure-mate/issues/66#issuecomment-189600390>.\r\n\r\n________________________________\r\n\r\nThis e-mail is sent by Suncorp Group Limited ABN 66 145 290 124 or one of its related entities \"Suncorp\".\r\nSuncorp may be contacted at Level 28, 266 George Street, Brisbane or on 13 11 55 or at suncorp.com.au.\r\nThe content of this e-mail is the view of the sender or stated author and does not necessarily reflect the view of Suncorp. The content, including attachments, is a confidential communication between Suncorp and the intended recipient. If you are not the intended recipient, any use, interference with, disclosure or copying of this e-mail, including attachments, is unauthorised and expressly prohibited. If you have received this e-mail in error please contact the sender immediately and delete the e-mail and any attachments from your system.\r\n　\r\n"}}