{"action":"created","comment":{"url":"https://api.github.com/repos/PyCon/pycon/pulls/comments/35763523","id":35763523,"diff_hunk":"@@ -236,3 +236,32 @@ class FinancialAidEmailTemplate(models.Model):\n \n     def __unicode__(self):\n         return self.name\n+\n+\n+def user_directory_path(instance, filename):\n+    \"\"\"\n+    Method for finding the directory path to upload a receipt to.\n+\n+    This method should live inside of the Receipt model, but support for this\n+    behavior is only added in python3. See the following for more info:\n+    https://docs.djangoproject.com/en/1.7/topics/migrations/#serializing-values\n+    \"\"\"\n+    # file will be uploaded to MEDIA_ROOT/finaid_receipts/<user>/<filename>\n+    return 'finaid_receipts/{}/{}'.format(instance.user.username, filename)\n+\n+\n+class Receipt(models.Model):\n+    timestamp = models.DateTimeField(auto_now_add=True, editable=False)\n+    user = models.ForeignKey(settings.AUTH_USER_MODEL,\n+                  related_name='financial_aid_receipts')\n+    application = models.ForeignKey(FinancialAidApplication,","path":"pycon/finaid/models.py","position":22,"original_position":22,"commit_id":"63c24fbc944bb29c548af7a4f0296b3863c5478e","original_commit_id":"63c24fbc944bb29c548af7a4f0296b3863c5478e","user":{"login":"dpoirier","id":2788679,"avatar_url":"https://avatars.githubusercontent.com/u/2788679?v=3","gravatar_id":"","url":"https://api.github.com/users/dpoirier","html_url":"https://github.com/dpoirier","followers_url":"https://api.github.com/users/dpoirier/followers","following_url":"https://api.github.com/users/dpoirier/following{/other_user}","gists_url":"https://api.github.com/users/dpoirier/gists{/gist_id}","starred_url":"https://api.github.com/users/dpoirier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dpoirier/subscriptions","organizations_url":"https://api.github.com/users/dpoirier/orgs","repos_url":"https://api.github.com/users/dpoirier/repos","events_url":"https://api.github.com/users/dpoirier/events{/privacy}","received_events_url":"https://api.github.com/users/dpoirier/received_events","type":"User","site_admin":false},"body":"Actually the application already has a 'user' field so we probably don't need a user field here too.  (And so we don't have to worry about the two fields getting out of sync.)","created_at":"2015-07-29T14:19:45Z","updated_at":"2015-07-29T14:19:45Z","html_url":"https://github.com/PyCon/pycon/pull/427#discussion_r35763523","pull_request_url":"https://api.github.com/repos/PyCon/pycon/pulls/427","_links":{"self":{"href":"https://api.github.com/repos/PyCon/pycon/pulls/comments/35763523"},"html":{"href":"https://github.com/PyCon/pycon/pull/427#discussion_r35763523"},"pull_request":{"href":"https://api.github.com/repos/PyCon/pycon/pulls/427"}}},"pull_request":{"url":"https://api.github.com/repos/PyCon/pycon/pulls/427","id":40918650,"html_url":"https://github.com/PyCon/pycon/pull/427","diff_url":"https://github.com/PyCon/pycon/pull/427.diff","patch_url":"https://github.com/PyCon/pycon/pull/427.patch","issue_url":"https://api.github.com/repos/PyCon/pycon/issues/427","number":427,"state":"open","locked":false,"title":"382 383 receipt form","user":{"login":"dchukhin","id":6025153,"avatar_url":"https://avatars.githubusercontent.com/u/6025153?v=3","gravatar_id":"","url":"https://api.github.com/users/dchukhin","html_url":"https://github.com/dchukhin","followers_url":"https://api.github.com/users/dchukhin/followers","following_url":"https://api.github.com/users/dchukhin/following{/other_user}","gists_url":"https://api.github.com/users/dchukhin/gists{/gist_id}","starred_url":"https://api.github.com/users/dchukhin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dchukhin/subscriptions","organizations_url":"https://api.github.com/users/dchukhin/orgs","repos_url":"https://api.github.com/users/dchukhin/repos","events_url":"https://api.github.com/users/dchukhin/events{/privacy}","received_events_url":"https://api.github.com/users/dchukhin/received_events","type":"User","site_admin":false},"body":"Note: this is not ready to merge just yet, as we are awaiting some more specifications about fields and when this functionality should be available to the user.","created_at":"2015-07-27T15:54:55Z","updated_at":"2015-07-29T14:19:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1e63de4f7f2217338a899217a9ae5aaabe3863fb","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/PyCon/pycon/pulls/427/commits","review_comments_url":"https://api.github.com/repos/PyCon/pycon/pulls/427/comments","review_comment_url":"https://api.github.com/repos/PyCon/pycon/pulls/comments{/number}","comments_url":"https://api.github.com/repos/PyCon/pycon/issues/427/comments","statuses_url":"https://api.github.com/repos/PyCon/pycon/statuses/63c24fbc944bb29c548af7a4f0296b3863c5478e","head":{"label":"PyCon:382-383-receipt-form","ref":"382-383-receipt-form","sha":"63c24fbc944bb29c548af7a4f0296b3863c5478e","user":{"login":"PyCon","id":3891942,"avatar_url":"https://avatars.githubusercontent.com/u/3891942?v=3","gravatar_id":"","url":"https://api.github.com/users/PyCon","html_url":"https://github.com/PyCon","followers_url":"https://api.github.com/users/PyCon/followers","following_url":"https://api.github.com/users/PyCon/following{/other_user}","gists_url":"https://api.github.com/users/PyCon/gists{/gist_id}","starred_url":"https://api.github.com/users/PyCon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PyCon/subscriptions","organizations_url":"https://api.github.com/users/PyCon/orgs","repos_url":"https://api.github.com/users/PyCon/repos","events_url":"https://api.github.com/users/PyCon/events{/privacy}","received_events_url":"https://api.github.com/users/PyCon/received_events","type":"Organization","site_admin":false},"repo":{"id":10479791,"name":"pycon","full_name":"PyCon/pycon","owner":{"login":"PyCon","id":3891942,"avatar_url":"https://avatars.githubusercontent.com/u/3891942?v=3","gravatar_id":"","url":"https://api.github.com/users/PyCon","html_url":"https://github.com/PyCon","followers_url":"https://api.github.com/users/PyCon/followers","following_url":"https://api.github.com/users/PyCon/following{/other_user}","gists_url":"https://api.github.com/users/PyCon/gists{/gist_id}","starred_url":"https://api.github.com/users/PyCon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PyCon/subscriptions","organizations_url":"https://api.github.com/users/PyCon/orgs","repos_url":"https://api.github.com/users/PyCon/repos","events_url":"https://api.github.com/users/PyCon/events{/privacy}","received_events_url":"https://api.github.com/users/PyCon/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/PyCon/pycon","description":"Website for PyCon","fork":false,"url":"https://api.github.com/repos/PyCon/pycon","forks_url":"https://api.github.com/repos/PyCon/pycon/forks","keys_url":"https://api.github.com/repos/PyCon/pycon/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PyCon/pycon/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PyCon/pycon/teams","hooks_url":"https://api.github.com/repos/PyCon/pycon/hooks","issue_events_url":"https://api.github.com/repos/PyCon/pycon/issues/events{/number}","events_url":"https://api.github.com/repos/PyCon/pycon/events","assignees_url":"https://api.github.com/repos/PyCon/pycon/assignees{/user}","branches_url":"https://api.github.com/repos/PyCon/pycon/branches{/branch}","tags_url":"https://api.github.com/repos/PyCon/pycon/tags","blobs_url":"https://api.github.com/repos/PyCon/pycon/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PyCon/pycon/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PyCon/pycon/git/refs{/sha}","trees_url":"https://api.github.com/repos/PyCon/pycon/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PyCon/pycon/statuses/{sha}","languages_url":"https://api.github.com/repos/PyCon/pycon/languages","stargazers_url":"https://api.github.com/repos/PyCon/pycon/stargazers","contributors_url":"https://api.github.com/repos/PyCon/pycon/contributors","subscribers_url":"https://api.github.com/repos/PyCon/pycon/subscribers","subscription_url":"https://api.github.com/repos/PyCon/pycon/subscription","commits_url":"https://api.github.com/repos/PyCon/pycon/commits{/sha}","git_commits_url":"https://api.github.com/repos/PyCon/pycon/git/commits{/sha}","comments_url":"https://api.github.com/repos/PyCon/pycon/comments{/number}","issue_comment_url":"https://api.github.com/repos/PyCon/pycon/issues/comments{/number}","contents_url":"https://api.github.com/repos/PyCon/pycon/contents/{+path}","compare_url":"https://api.github.com/repos/PyCon/pycon/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PyCon/pycon/merges","archive_url":"https://api.github.com/repos/PyCon/pycon/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PyCon/pycon/downloads","issues_url":"https://api.github.com/repos/PyCon/pycon/issues{/number}","pulls_url":"https://api.github.com/repos/PyCon/pycon/pulls{/number}","milestones_url":"https://api.github.com/repos/PyCon/pycon/milestones{/number}","notifications_url":"https://api.github.com/repos/PyCon/pycon/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PyCon/pycon/labels{/name}","releases_url":"https://api.github.com/repos/PyCon/pycon/releases{/id}","created_at":"2013-06-04T13:54:18Z","updated_at":"2015-07-01T05:37:26Z","pushed_at":"2015-07-29T14:09:20Z","git_url":"git://github.com/PyCon/pycon.git","ssh_url":"git@github.com:PyCon/pycon.git","clone_url":"https://github.com/PyCon/pycon.git","svn_url":"https://github.com/PyCon/pycon","homepage":"","size":10792,"stargazers_count":33,"watchers_count":33,"language":"Python","has_issues":true,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":37,"mirror_url":null,"open_issues_count":87,"forks":37,"open_issues":87,"watchers":33,"default_branch":"develop"}},"base":{"label":"PyCon:develop","ref":"develop","sha":"7d4e4d27c531b25fc4b4742d4660d878fbf5d17b","user":{"login":"PyCon","id":3891942,"avatar_url":"https://avatars.githubusercontent.com/u/3891942?v=3","gravatar_id":"","url":"https://api.github.com/users/PyCon","html_url":"https://github.com/PyCon","followers_url":"https://api.github.com/users/PyCon/followers","following_url":"https://api.github.com/users/PyCon/following{/other_user}","gists_url":"https://api.github.com/users/PyCon/gists{/gist_id}","starred_url":"https://api.github.com/users/PyCon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PyCon/subscriptions","organizations_url":"https://api.github.com/users/PyCon/orgs","repos_url":"https://api.github.com/users/PyCon/repos","events_url":"https://api.github.com/users/PyCon/events{/privacy}","received_events_url":"https://api.github.com/users/PyCon/received_events","type":"Organization","site_admin":false},"repo":{"id":10479791,"name":"pycon","full_name":"PyCon/pycon","owner":{"login":"PyCon","id":3891942,"avatar_url":"https://avatars.githubusercontent.com/u/3891942?v=3","gravatar_id":"","url":"https://api.github.com/users/PyCon","html_url":"https://github.com/PyCon","followers_url":"https://api.github.com/users/PyCon/followers","following_url":"https://api.github.com/users/PyCon/following{/other_user}","gists_url":"https://api.github.com/users/PyCon/gists{/gist_id}","starred_url":"https://api.github.com/users/PyCon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PyCon/subscriptions","organizations_url":"https://api.github.com/users/PyCon/orgs","repos_url":"https://api.github.com/users/PyCon/repos","events_url":"https://api.github.com/users/PyCon/events{/privacy}","received_events_url":"https://api.github.com/users/PyCon/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/PyCon/pycon","description":"Website for PyCon","fork":false,"url":"https://api.github.com/repos/PyCon/pycon","forks_url":"https://api.github.com/repos/PyCon/pycon/forks","keys_url":"https://api.github.com/repos/PyCon/pycon/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PyCon/pycon/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PyCon/pycon/teams","hooks_url":"https://api.github.com/repos/PyCon/pycon/hooks","issue_events_url":"https://api.github.com/repos/PyCon/pycon/issues/events{/number}","events_url":"https://api.github.com/repos/PyCon/pycon/events","assignees_url":"https://api.github.com/repos/PyCon/pycon/assignees{/user}","branches_url":"https://api.github.com/repos/PyCon/pycon/branches{/branch}","tags_url":"https://api.github.com/repos/PyCon/pycon/tags","blobs_url":"https://api.github.com/repos/PyCon/pycon/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PyCon/pycon/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PyCon/pycon/git/refs{/sha}","trees_url":"https://api.github.com/repos/PyCon/pycon/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PyCon/pycon/statuses/{sha}","languages_url":"https://api.github.com/repos/PyCon/pycon/languages","stargazers_url":"https://api.github.com/repos/PyCon/pycon/stargazers","contributors_url":"https://api.github.com/repos/PyCon/pycon/contributors","subscribers_url":"https://api.github.com/repos/PyCon/pycon/subscribers","subscription_url":"https://api.github.com/repos/PyCon/pycon/subscription","commits_url":"https://api.github.com/repos/PyCon/pycon/commits{/sha}","git_commits_url":"https://api.github.com/repos/PyCon/pycon/git/commits{/sha}","comments_url":"https://api.github.com/repos/PyCon/pycon/comments{/number}","issue_comment_url":"https://api.github.com/repos/PyCon/pycon/issues/comments{/number}","contents_url":"https://api.github.com/repos/PyCon/pycon/contents/{+path}","compare_url":"https://api.github.com/repos/PyCon/pycon/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PyCon/pycon/merges","archive_url":"https://api.github.com/repos/PyCon/pycon/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PyCon/pycon/downloads","issues_url":"https://api.github.com/repos/PyCon/pycon/issues{/number}","pulls_url":"https://api.github.com/repos/PyCon/pycon/pulls{/number}","milestones_url":"https://api.github.com/repos/PyCon/pycon/milestones{/number}","notifications_url":"https://api.github.com/repos/PyCon/pycon/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PyCon/pycon/labels{/name}","releases_url":"https://api.github.com/repos/PyCon/pycon/releases{/id}","created_at":"2013-06-04T13:54:18Z","updated_at":"2015-07-01T05:37:26Z","pushed_at":"2015-07-29T14:09:20Z","git_url":"git://github.com/PyCon/pycon.git","ssh_url":"git@github.com:PyCon/pycon.git","clone_url":"https://github.com/PyCon/pycon.git","svn_url":"https://github.com/PyCon/pycon","homepage":"","size":10792,"stargazers_count":33,"watchers_count":33,"language":"Python","has_issues":true,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":37,"mirror_url":null,"open_issues_count":87,"forks":37,"open_issues":87,"watchers":33,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/PyCon/pycon/pulls/427"},"html":{"href":"https://github.com/PyCon/pycon/pull/427"},"issue":{"href":"https://api.github.com/repos/PyCon/pycon/issues/427"},"comments":{"href":"https://api.github.com/repos/PyCon/pycon/issues/427/comments"},"review_comments":{"href":"https://api.github.com/repos/PyCon/pycon/pulls/427/comments"},"review_comment":{"href":"https://api.github.com/repos/PyCon/pycon/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/PyCon/pycon/pulls/427/commits"},"statuses":{"href":"https://api.github.com/repos/PyCon/pycon/statuses/63c24fbc944bb29c548af7a4f0296b3863c5478e"}}}}