{"action":"created","comment":{"url":"https://api.github.com/repos/cedir/web/pulls/comments/220729071","pull_request_review_id":159205580,"id":220729071,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyMDcyOTA3MQ==","diff_hunk":"@@ -1,14 +1,33 @@\n+#-*- coding: utf-8 -*-\n from django.db import models\n \n+CONDICIONES_FISCALES = (('CONSUMIDOR FINAL', 'CONSUMIDOR FINAL'),\n+                        ('RESPONSABLE INSCRIPTO', 'RESPONSABLE INSCRIPTO'),\n+                        ('EXENTO', 'EXENTO'))\n+BOOLEANOS = (('1', 'Si'),\n+             ('0', 'No'))\n \n class ObraSocial(models.Model):\n     id = models.AutoField(primary_key=True, db_column=\"idObraSocial\")\n     nombre = models.CharField(db_column=\"obraSocial\", max_length=200)\n-    se_presenta_por_ARA = models.BooleanField(db_column='sePresentaPorARA', default=0)\n-    #direccion = models.CharField()\n-    #telefono = models.CharField()\n-    #localidad = models.CharField()\n-    #observaciones = models.CharField()\n+\n+    # Estos fields estan representados como chars con choice porque en la DB son SmallInt\n+    se_presenta_por_ARA = models.CharField(u'Se presenta por ARA', db_column='sePresentaPorARA',  max_length=200,\n+                                        choices=BOOLEANOS, default=0)\n+    se_presenta_por_AMR = models.CharField(u'Se presenta por AMR', db_column='sePresentaPorAMR',  max_length=200,\n+                                        choices=BOOLEANOS, default=0)\n+    direccion = models.CharField(u\"Dirección\", db_column=u'direccion', max_length=200,","path":"obra_social/models.py","position":24,"original_position":24,"commit_id":"c3b25a8b76a30373f9b632c92d7d64165cbb6d2f","original_commit_id":"c3b25a8b76a30373f9b632c92d7d64165cbb6d2f","user":{"login":"walterbrunetti","id":2583662,"node_id":"MDQ6VXNlcjI1ODM2NjI=","avatar_url":"https://avatars2.githubusercontent.com/u/2583662?v=4","gravatar_id":"","url":"https://api.github.com/users/walterbrunetti","html_url":"https://github.com/walterbrunetti","followers_url":"https://api.github.com/users/walterbrunetti/followers","following_url":"https://api.github.com/users/walterbrunetti/following{/other_user}","gists_url":"https://api.github.com/users/walterbrunetti/gists{/gist_id}","starred_url":"https://api.github.com/users/walterbrunetti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/walterbrunetti/subscriptions","organizations_url":"https://api.github.com/users/walterbrunetti/orgs","repos_url":"https://api.github.com/users/walterbrunetti/repos","events_url":"https://api.github.com/users/walterbrunetti/events{/privacy}","received_events_url":"https://api.github.com/users/walterbrunetti/received_events","type":"User","site_admin":false},"body":"en este caso no hace falta especificar db_column, ya que es el mismo al nombre de la variable ;)","created_at":"2018-09-26T21:26:12Z","updated_at":"2018-09-26T21:31:56Z","html_url":"https://github.com/cedir/web/pull/66#discussion_r220729071","pull_request_url":"https://api.github.com/repos/cedir/web/pulls/66","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/cedir/web/pulls/comments/220729071"},"html":{"href":"https://github.com/cedir/web/pull/66#discussion_r220729071"},"pull_request":{"href":"https://api.github.com/repos/cedir/web/pulls/66"}}},"pull_request":{"url":"https://api.github.com/repos/cedir/web/pulls/66","id":218136986,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE4MTM2OTg2","html_url":"https://github.com/cedir/web/pull/66","diff_url":"https://github.com/cedir/web/pull/66.diff","patch_url":"https://github.com/cedir/web/pull/66.patch","issue_url":"https://api.github.com/repos/cedir/web/issues/66","number":66,"state":"open","locked":false,"title":"Obras Sociales y Practicas en Django Admin","user":{"login":"QPotato","id":18300485,"node_id":"MDQ6VXNlcjE4MzAwNDg1","avatar_url":"https://avatars3.githubusercontent.com/u/18300485?v=4","gravatar_id":"","url":"https://api.github.com/users/QPotato","html_url":"https://github.com/QPotato","followers_url":"https://api.github.com/users/QPotato/followers","following_url":"https://api.github.com/users/QPotato/following{/other_user}","gists_url":"https://api.github.com/users/QPotato/gists{/gist_id}","starred_url":"https://api.github.com/users/QPotato/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/QPotato/subscriptions","organizations_url":"https://api.github.com/users/QPotato/orgs","repos_url":"https://api.github.com/users/QPotato/repos","events_url":"https://api.github.com/users/QPotato/events{/privacy}","received_events_url":"https://api.github.com/users/QPotato/received_events","type":"User","site_admin":false},"body":"*Practicas**: saqué el field usedLevel del model porque generaba problemas y no se usa en ningún lado.","created_at":"2018-09-25T22:22:01Z","updated_at":"2018-09-26T21:31:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":"df92a47b26242d8d0a3b3648fcd81c1a846235f0","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/cedir/web/pulls/66/commits","review_comments_url":"https://api.github.com/repos/cedir/web/pulls/66/comments","review_comment_url":"https://api.github.com/repos/cedir/web/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cedir/web/issues/66/comments","statuses_url":"https://api.github.com/repos/cedir/web/statuses/c3b25a8b76a30373f9b632c92d7d64165cbb6d2f","head":{"label":"cedir:os_practica_admin","ref":"os_practica_admin","sha":"c3b25a8b76a30373f9b632c92d7d64165cbb6d2f","user":{"login":"cedir","id":6361894,"node_id":"MDEyOk9yZ2FuaXphdGlvbjYzNjE4OTQ=","avatar_url":"https://avatars0.githubusercontent.com/u/6361894?v=4","gravatar_id":"","url":"https://api.github.com/users/cedir","html_url":"https://github.com/cedir","followers_url":"https://api.github.com/users/cedir/followers","following_url":"https://api.github.com/users/cedir/following{/other_user}","gists_url":"https://api.github.com/users/cedir/gists{/gist_id}","starred_url":"https://api.github.com/users/cedir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cedir/subscriptions","organizations_url":"https://api.github.com/users/cedir/orgs","repos_url":"https://api.github.com/users/cedir/repos","events_url":"https://api.github.com/users/cedir/events{/privacy}","received_events_url":"https://api.github.com/users/cedir/received_events","type":"Organization","site_admin":false},"repo":{"id":17226706,"node_id":"MDEwOlJlcG9zaXRvcnkxNzIyNjcwNg==","name":"web","full_name":"cedir/web","private":false,"owner":{"login":"cedir","id":6361894,"node_id":"MDEyOk9yZ2FuaXphdGlvbjYzNjE4OTQ=","avatar_url":"https://avatars0.githubusercontent.com/u/6361894?v=4","gravatar_id":"","url":"https://api.github.com/users/cedir","html_url":"https://github.com/cedir","followers_url":"https://api.github.com/users/cedir/followers","following_url":"https://api.github.com/users/cedir/following{/other_user}","gists_url":"https://api.github.com/users/cedir/gists{/gist_id}","starred_url":"https://api.github.com/users/cedir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cedir/subscriptions","organizations_url":"https://api.github.com/users/cedir/orgs","repos_url":"https://api.github.com/users/cedir/repos","events_url":"https://api.github.com/users/cedir/events{/privacy}","received_events_url":"https://api.github.com/users/cedir/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/cedir/web","description":null,"fork":false,"url":"https://api.github.com/repos/cedir/web","forks_url":"https://api.github.com/repos/cedir/web/forks","keys_url":"https://api.github.com/repos/cedir/web/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cedir/web/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cedir/web/teams","hooks_url":"https://api.github.com/repos/cedir/web/hooks","issue_events_url":"https://api.github.com/repos/cedir/web/issues/events{/number}","events_url":"https://api.github.com/repos/cedir/web/events","assignees_url":"https://api.github.com/repos/cedir/web/assignees{/user}","branches_url":"https://api.github.com/repos/cedir/web/branches{/branch}","tags_url":"https://api.github.com/repos/cedir/web/tags","blobs_url":"https://api.github.com/repos/cedir/web/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cedir/web/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cedir/web/git/refs{/sha}","trees_url":"https://api.github.com/repos/cedir/web/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cedir/web/statuses/{sha}","languages_url":"https://api.github.com/repos/cedir/web/languages","stargazers_url":"https://api.github.com/repos/cedir/web/stargazers","contributors_url":"https://api.github.com/repos/cedir/web/contributors","subscribers_url":"https://api.github.com/repos/cedir/web/subscribers","subscription_url":"https://api.github.com/repos/cedir/web/subscription","commits_url":"https://api.github.com/repos/cedir/web/commits{/sha}","git_commits_url":"https://api.github.com/repos/cedir/web/git/commits{/sha}","comments_url":"https://api.github.com/repos/cedir/web/comments{/number}","issue_comment_url":"https://api.github.com/repos/cedir/web/issues/comments{/number}","contents_url":"https://api.github.com/repos/cedir/web/contents/{+path}","compare_url":"https://api.github.com/repos/cedir/web/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cedir/web/merges","archive_url":"https://api.github.com/repos/cedir/web/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cedir/web/downloads","issues_url":"https://api.github.com/repos/cedir/web/issues{/number}","pulls_url":"https://api.github.com/repos/cedir/web/pulls{/number}","milestones_url":"https://api.github.com/repos/cedir/web/milestones{/number}","notifications_url":"https://api.github.com/repos/cedir/web/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cedir/web/labels{/name}","releases_url":"https://api.github.com/repos/cedir/web/releases{/id}","deployments_url":"https://api.github.com/repos/cedir/web/deployments","created_at":"2014-02-26T21:47:25Z","updated_at":"2018-09-19T21:38:50Z","pushed_at":"2018-09-26T03:58:00Z","git_url":"git://github.com/cedir/web.git","ssh_url":"git@github.com:cedir/web.git","clone_url":"https://github.com/cedir/web.git","svn_url":"https://github.com/cedir/web","homepage":null,"size":7317,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":3,"license":null,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"base":{"label":"cedir:master","ref":"master","sha":"89d1d40083570636aff02e4da6bb08fb636f232f","user":{"login":"cedir","id":6361894,"node_id":"MDEyOk9yZ2FuaXphdGlvbjYzNjE4OTQ=","avatar_url":"https://avatars0.githubusercontent.com/u/6361894?v=4","gravatar_id":"","url":"https://api.github.com/users/cedir","html_url":"https://github.com/cedir","followers_url":"https://api.github.com/users/cedir/followers","following_url":"https://api.github.com/users/cedir/following{/other_user}","gists_url":"https://api.github.com/users/cedir/gists{/gist_id}","starred_url":"https://api.github.com/users/cedir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cedir/subscriptions","organizations_url":"https://api.github.com/users/cedir/orgs","repos_url":"https://api.github.com/users/cedir/repos","events_url":"https://api.github.com/users/cedir/events{/privacy}","received_events_url":"https://api.github.com/users/cedir/received_events","type":"Organization","site_admin":false},"repo":{"id":17226706,"node_id":"MDEwOlJlcG9zaXRvcnkxNzIyNjcwNg==","name":"web","full_name":"cedir/web","private":false,"owner":{"login":"cedir","id":6361894,"node_id":"MDEyOk9yZ2FuaXphdGlvbjYzNjE4OTQ=","avatar_url":"https://avatars0.githubusercontent.com/u/6361894?v=4","gravatar_id":"","url":"https://api.github.com/users/cedir","html_url":"https://github.com/cedir","followers_url":"https://api.github.com/users/cedir/followers","following_url":"https://api.github.com/users/cedir/following{/other_user}","gists_url":"https://api.github.com/users/cedir/gists{/gist_id}","starred_url":"https://api.github.com/users/cedir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cedir/subscriptions","organizations_url":"https://api.github.com/users/cedir/orgs","repos_url":"https://api.github.com/users/cedir/repos","events_url":"https://api.github.com/users/cedir/events{/privacy}","received_events_url":"https://api.github.com/users/cedir/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/cedir/web","description":null,"fork":false,"url":"https://api.github.com/repos/cedir/web","forks_url":"https://api.github.com/repos/cedir/web/forks","keys_url":"https://api.github.com/repos/cedir/web/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cedir/web/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cedir/web/teams","hooks_url":"https://api.github.com/repos/cedir/web/hooks","issue_events_url":"https://api.github.com/repos/cedir/web/issues/events{/number}","events_url":"https://api.github.com/repos/cedir/web/events","assignees_url":"https://api.github.com/repos/cedir/web/assignees{/user}","branches_url":"https://api.github.com/repos/cedir/web/branches{/branch}","tags_url":"https://api.github.com/repos/cedir/web/tags","blobs_url":"https://api.github.com/repos/cedir/web/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cedir/web/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cedir/web/git/refs{/sha}","trees_url":"https://api.github.com/repos/cedir/web/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cedir/web/statuses/{sha}","languages_url":"https://api.github.com/repos/cedir/web/languages","stargazers_url":"https://api.github.com/repos/cedir/web/stargazers","contributors_url":"https://api.github.com/repos/cedir/web/contributors","subscribers_url":"https://api.github.com/repos/cedir/web/subscribers","subscription_url":"https://api.github.com/repos/cedir/web/subscription","commits_url":"https://api.github.com/repos/cedir/web/commits{/sha}","git_commits_url":"https://api.github.com/repos/cedir/web/git/commits{/sha}","comments_url":"https://api.github.com/repos/cedir/web/comments{/number}","issue_comment_url":"https://api.github.com/repos/cedir/web/issues/comments{/number}","contents_url":"https://api.github.com/repos/cedir/web/contents/{+path}","compare_url":"https://api.github.com/repos/cedir/web/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cedir/web/merges","archive_url":"https://api.github.com/repos/cedir/web/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cedir/web/downloads","issues_url":"https://api.github.com/repos/cedir/web/issues{/number}","pulls_url":"https://api.github.com/repos/cedir/web/pulls{/number}","milestones_url":"https://api.github.com/repos/cedir/web/milestones{/number}","notifications_url":"https://api.github.com/repos/cedir/web/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cedir/web/labels{/name}","releases_url":"https://api.github.com/repos/cedir/web/releases{/id}","deployments_url":"https://api.github.com/repos/cedir/web/deployments","created_at":"2014-02-26T21:47:25Z","updated_at":"2018-09-19T21:38:50Z","pushed_at":"2018-09-26T03:58:00Z","git_url":"git://github.com/cedir/web.git","ssh_url":"git@github.com:cedir/web.git","clone_url":"https://github.com/cedir/web.git","svn_url":"https://github.com/cedir/web","homepage":null,"size":7317,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":3,"license":null,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cedir/web/pulls/66"},"html":{"href":"https://github.com/cedir/web/pull/66"},"issue":{"href":"https://api.github.com/repos/cedir/web/issues/66"},"comments":{"href":"https://api.github.com/repos/cedir/web/issues/66/comments"},"review_comments":{"href":"https://api.github.com/repos/cedir/web/pulls/66/comments"},"review_comment":{"href":"https://api.github.com/repos/cedir/web/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cedir/web/pulls/66/commits"},"statuses":{"href":"https://api.github.com/repos/cedir/web/statuses/c3b25a8b76a30373f9b632c92d7d64165cbb6d2f"}},"author_association":"NONE"}}
{"actor":{"display_login":"walterbrunetti"}}