{"action":"created","comment":{"url":"https://api.github.com/repos/Guin-/ickly/pulls/comments/111169399","pull_request_review_id":32395385,"id":111169399,"diff_hunk":"@@ -0,0 +1,39 @@\n+# -*- coding: utf-8 -*-\n+# Generated by Django 1.10.1 on 2017-03-10 21:42\n+from __future__ import unicode_literals\n+\n+from django.db import migrations, models\n+import csv\n+\n+def load_initial_data(apps, schema_editor):\n+    Business = apps.get_model(\"api\", \"Business\")\n+    Inspection = apps.get_model(\"api\", \"Inspection\")\n+\n+    with open('../../../DOHMH_NYC_Restaurant_Inspection_Results.csv') as csv_file:\n+        reader = csv.reader(csv_file, delimiter=',')\n+        header = next(reader)\n+        for row in reader:","path":"backend/api/migrations/0002_auto_20170310_2142.py","position":15,"original_position":15,"commit_id":"aa1ebb26708ad89b76021e8de37c9cccd58b60d7","original_commit_id":"aa1ebb26708ad89b76021e8de37c9cccd58b60d7","user":{"login":"galarant","id":1584607,"avatar_url":"https://avatars0.githubusercontent.com/u/1584607?v=3","gravatar_id":"","url":"https://api.github.com/users/galarant","html_url":"https://github.com/galarant","followers_url":"https://api.github.com/users/galarant/followers","following_url":"https://api.github.com/users/galarant/following{/other_user}","gists_url":"https://api.github.com/users/galarant/gists{/gist_id}","starred_url":"https://api.github.com/users/galarant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/galarant/subscriptions","organizations_url":"https://api.github.com/users/galarant/orgs","repos_url":"https://api.github.com/users/galarant/repos","events_url":"https://api.github.com/users/galarant/events{/privacy}","received_events_url":"https://api.github.com/users/galarant/received_events","type":"User","site_admin":false},"body":"You don't need to create a separate list for the camises, you can do it all in one list. Check out this gist:\r\n\r\nhttps://gist.github.com/galarant/e056469e7dc4f7f65098d07f21a42358","created_at":"2017-04-12T14:42:19Z","updated_at":"2017-04-12T14:42:19Z","html_url":"https://github.com/Guin-/ickly/pull/22#discussion_r111169399","pull_request_url":"https://api.github.com/repos/Guin-/ickly/pulls/22","_links":{"self":{"href":"https://api.github.com/repos/Guin-/ickly/pulls/comments/111169399"},"html":{"href":"https://github.com/Guin-/ickly/pull/22#discussion_r111169399"},"pull_request":{"href":"https://api.github.com/repos/Guin-/ickly/pulls/22"}}},"pull_request":{"url":"https://api.github.com/repos/Guin-/ickly/pulls/22","id":110900984,"html_url":"https://github.com/Guin-/ickly/pull/22","diff_url":"https://github.com/Guin-/ickly/pull/22.diff","patch_url":"https://github.com/Guin-/ickly/pull/22.patch","issue_url":"https://api.github.com/repos/Guin-/ickly/issues/22","number":22,"state":"open","locked":false,"title":"020 data migration","user":{"login":"Guin-","id":7889075,"avatar_url":"https://avatars0.githubusercontent.com/u/7889075?v=3","gravatar_id":"","url":"https://api.github.com/users/Guin-","html_url":"https://github.com/Guin-","followers_url":"https://api.github.com/users/Guin-/followers","following_url":"https://api.github.com/users/Guin-/following{/other_user}","gists_url":"https://api.github.com/users/Guin-/gists{/gist_id}","starred_url":"https://api.github.com/users/Guin-/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Guin-/subscriptions","organizations_url":"https://api.github.com/users/Guin-/orgs","repos_url":"https://api.github.com/users/Guin-/repos","events_url":"https://api.github.com/users/Guin-/events{/privacy}","received_events_url":"https://api.github.com/users/Guin-/received_events","type":"User","site_admin":false},"body":"This is what i have so far. I haven't actually tried testing/ running anything yet, but wanted to push it up and get some feedback if i'm doing anything glaringly dumb i'm unaware of yet.  \r\nAlso the idea is the reverse func would just delete any objects created right? ","created_at":"2017-03-15T17:34:18Z","updated_at":"2017-04-12T14:42:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f3858e728973634716c20eb044564a685716d9cf","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/Guin-/ickly/pulls/22/commits","review_comments_url":"https://api.github.com/repos/Guin-/ickly/pulls/22/comments","review_comment_url":"https://api.github.com/repos/Guin-/ickly/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Guin-/ickly/issues/22/comments","statuses_url":"https://api.github.com/repos/Guin-/ickly/statuses/aa1ebb26708ad89b76021e8de37c9cccd58b60d7","head":{"label":"Guin-:020-data-migration","ref":"020-data-migration","sha":"aa1ebb26708ad89b76021e8de37c9cccd58b60d7","user":{"login":"Guin-","id":7889075,"avatar_url":"https://avatars0.githubusercontent.com/u/7889075?v=3","gravatar_id":"","url":"https://api.github.com/users/Guin-","html_url":"https://github.com/Guin-","followers_url":"https://api.github.com/users/Guin-/followers","following_url":"https://api.github.com/users/Guin-/following{/other_user}","gists_url":"https://api.github.com/users/Guin-/gists{/gist_id}","starred_url":"https://api.github.com/users/Guin-/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Guin-/subscriptions","organizations_url":"https://api.github.com/users/Guin-/orgs","repos_url":"https://api.github.com/users/Guin-/repos","events_url":"https://api.github.com/users/Guin-/events{/privacy}","received_events_url":"https://api.github.com/users/Guin-/received_events","type":"User","site_admin":false},"repo":{"id":66683283,"name":"ickly","full_name":"Guin-/ickly","owner":{"login":"Guin-","id":7889075,"avatar_url":"https://avatars0.githubusercontent.com/u/7889075?v=3","gravatar_id":"","url":"https://api.github.com/users/Guin-","html_url":"https://github.com/Guin-","followers_url":"https://api.github.com/users/Guin-/followers","following_url":"https://api.github.com/users/Guin-/following{/other_user}","gists_url":"https://api.github.com/users/Guin-/gists{/gist_id}","starred_url":"https://api.github.com/users/Guin-/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Guin-/subscriptions","organizations_url":"https://api.github.com/users/Guin-/orgs","repos_url":"https://api.github.com/users/Guin-/repos","events_url":"https://api.github.com/users/Guin-/events{/privacy}","received_events_url":"https://api.github.com/users/Guin-/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Guin-/ickly","description":"A search interface for NYC Restaurant Inspection Results data","fork":false,"url":"https://api.github.com/repos/Guin-/ickly","forks_url":"https://api.github.com/repos/Guin-/ickly/forks","keys_url":"https://api.github.com/repos/Guin-/ickly/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Guin-/ickly/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Guin-/ickly/teams","hooks_url":"https://api.github.com/repos/Guin-/ickly/hooks","issue_events_url":"https://api.github.com/repos/Guin-/ickly/issues/events{/number}","events_url":"https://api.github.com/repos/Guin-/ickly/events","assignees_url":"https://api.github.com/repos/Guin-/ickly/assignees{/user}","branches_url":"https://api.github.com/repos/Guin-/ickly/branches{/branch}","tags_url":"https://api.github.com/repos/Guin-/ickly/tags","blobs_url":"https://api.github.com/repos/Guin-/ickly/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Guin-/ickly/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Guin-/ickly/git/refs{/sha}","trees_url":"https://api.github.com/repos/Guin-/ickly/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Guin-/ickly/statuses/{sha}","languages_url":"https://api.github.com/repos/Guin-/ickly/languages","stargazers_url":"https://api.github.com/repos/Guin-/ickly/stargazers","contributors_url":"https://api.github.com/repos/Guin-/ickly/contributors","subscribers_url":"https://api.github.com/repos/Guin-/ickly/subscribers","subscription_url":"https://api.github.com/repos/Guin-/ickly/subscription","commits_url":"https://api.github.com/repos/Guin-/ickly/commits{/sha}","git_commits_url":"https://api.github.com/repos/Guin-/ickly/git/commits{/sha}","comments_url":"https://api.github.com/repos/Guin-/ickly/comments{/number}","issue_comment_url":"https://api.github.com/repos/Guin-/ickly/issues/comments{/number}","contents_url":"https://api.github.com/repos/Guin-/ickly/contents/{+path}","compare_url":"https://api.github.com/repos/Guin-/ickly/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Guin-/ickly/merges","archive_url":"https://api.github.com/repos/Guin-/ickly/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Guin-/ickly/downloads","issues_url":"https://api.github.com/repos/Guin-/ickly/issues{/number}","pulls_url":"https://api.github.com/repos/Guin-/ickly/pulls{/number}","milestones_url":"https://api.github.com/repos/Guin-/ickly/milestones{/number}","notifications_url":"https://api.github.com/repos/Guin-/ickly/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Guin-/ickly/labels{/name}","releases_url":"https://api.github.com/repos/Guin-/ickly/releases{/id}","deployments_url":"https://api.github.com/repos/Guin-/ickly/deployments","created_at":"2016-08-26T22:34:19Z","updated_at":"2017-01-19T02:06:37Z","pushed_at":"2017-03-15T17:34:19Z","git_url":"git://github.com/Guin-/ickly.git","ssh_url":"git@github.com:Guin-/ickly.git","clone_url":"https://github.com/Guin-/ickly.git","svn_url":"https://github.com/Guin-/ickly","homepage":"","size":3561,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":8,"forks":0,"open_issues":8,"watchers":0,"default_branch":"master"}},"base":{"label":"Guin-:master","ref":"master","sha":"dd74d16b3406c8d13bff638a11ac14e0fee2da09","user":{"login":"Guin-","id":7889075,"avatar_url":"https://avatars0.githubusercontent.com/u/7889075?v=3","gravatar_id":"","url":"https://api.github.com/users/Guin-","html_url":"https://github.com/Guin-","followers_url":"https://api.github.com/users/Guin-/followers","following_url":"https://api.github.com/users/Guin-/following{/other_user}","gists_url":"https://api.github.com/users/Guin-/gists{/gist_id}","starred_url":"https://api.github.com/users/Guin-/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Guin-/subscriptions","organizations_url":"https://api.github.com/users/Guin-/orgs","repos_url":"https://api.github.com/users/Guin-/repos","events_url":"https://api.github.com/users/Guin-/events{/privacy}","received_events_url":"https://api.github.com/users/Guin-/received_events","type":"User","site_admin":false},"repo":{"id":66683283,"name":"ickly","full_name":"Guin-/ickly","owner":{"login":"Guin-","id":7889075,"avatar_url":"https://avatars0.githubusercontent.com/u/7889075?v=3","gravatar_id":"","url":"https://api.github.com/users/Guin-","html_url":"https://github.com/Guin-","followers_url":"https://api.github.com/users/Guin-/followers","following_url":"https://api.github.com/users/Guin-/following{/other_user}","gists_url":"https://api.github.com/users/Guin-/gists{/gist_id}","starred_url":"https://api.github.com/users/Guin-/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Guin-/subscriptions","organizations_url":"https://api.github.com/users/Guin-/orgs","repos_url":"https://api.github.com/users/Guin-/repos","events_url":"https://api.github.com/users/Guin-/events{/privacy}","received_events_url":"https://api.github.com/users/Guin-/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Guin-/ickly","description":"A search interface for NYC Restaurant Inspection Results data","fork":false,"url":"https://api.github.com/repos/Guin-/ickly","forks_url":"https://api.github.com/repos/Guin-/ickly/forks","keys_url":"https://api.github.com/repos/Guin-/ickly/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Guin-/ickly/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Guin-/ickly/teams","hooks_url":"https://api.github.com/repos/Guin-/ickly/hooks","issue_events_url":"https://api.github.com/repos/Guin-/ickly/issues/events{/number}","events_url":"https://api.github.com/repos/Guin-/ickly/events","assignees_url":"https://api.github.com/repos/Guin-/ickly/assignees{/user}","branches_url":"https://api.github.com/repos/Guin-/ickly/branches{/branch}","tags_url":"https://api.github.com/repos/Guin-/ickly/tags","blobs_url":"https://api.github.com/repos/Guin-/ickly/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Guin-/ickly/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Guin-/ickly/git/refs{/sha}","trees_url":"https://api.github.com/repos/Guin-/ickly/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Guin-/ickly/statuses/{sha}","languages_url":"https://api.github.com/repos/Guin-/ickly/languages","stargazers_url":"https://api.github.com/repos/Guin-/ickly/stargazers","contributors_url":"https://api.github.com/repos/Guin-/ickly/contributors","subscribers_url":"https://api.github.com/repos/Guin-/ickly/subscribers","subscription_url":"https://api.github.com/repos/Guin-/ickly/subscription","commits_url":"https://api.github.com/repos/Guin-/ickly/commits{/sha}","git_commits_url":"https://api.github.com/repos/Guin-/ickly/git/commits{/sha}","comments_url":"https://api.github.com/repos/Guin-/ickly/comments{/number}","issue_comment_url":"https://api.github.com/repos/Guin-/ickly/issues/comments{/number}","contents_url":"https://api.github.com/repos/Guin-/ickly/contents/{+path}","compare_url":"https://api.github.com/repos/Guin-/ickly/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Guin-/ickly/merges","archive_url":"https://api.github.com/repos/Guin-/ickly/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Guin-/ickly/downloads","issues_url":"https://api.github.com/repos/Guin-/ickly/issues{/number}","pulls_url":"https://api.github.com/repos/Guin-/ickly/pulls{/number}","milestones_url":"https://api.github.com/repos/Guin-/ickly/milestones{/number}","notifications_url":"https://api.github.com/repos/Guin-/ickly/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Guin-/ickly/labels{/name}","releases_url":"https://api.github.com/repos/Guin-/ickly/releases{/id}","deployments_url":"https://api.github.com/repos/Guin-/ickly/deployments","created_at":"2016-08-26T22:34:19Z","updated_at":"2017-01-19T02:06:37Z","pushed_at":"2017-03-15T17:34:19Z","git_url":"git://github.com/Guin-/ickly.git","ssh_url":"git@github.com:Guin-/ickly.git","clone_url":"https://github.com/Guin-/ickly.git","svn_url":"https://github.com/Guin-/ickly","homepage":"","size":3561,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":8,"forks":0,"open_issues":8,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Guin-/ickly/pulls/22"},"html":{"href":"https://github.com/Guin-/ickly/pull/22"},"issue":{"href":"https://api.github.com/repos/Guin-/ickly/issues/22"},"comments":{"href":"https://api.github.com/repos/Guin-/ickly/issues/22/comments"},"review_comments":{"href":"https://api.github.com/repos/Guin-/ickly/pulls/22/comments"},"review_comment":{"href":"https://api.github.com/repos/Guin-/ickly/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Guin-/ickly/pulls/22/commits"},"statuses":{"href":"https://api.github.com/repos/Guin-/ickly/statuses/aa1ebb26708ad89b76021e8de37c9cccd58b60d7"}}}}
{"actor":{"display_login":"galarant"}}