{"action":"created","comment":{"url":"https://api.github.com/repos/AlexandreDecan/Lexpage/pulls/comments/50316458","id":50316458,"diff_hunk":"@@ -0,0 +1,74 @@\n+from datetime import datetime\n+from django.db import models\n+from django.contrib.auth.models import User\n+\n+from board.models import Message\n+\n+class DatestampedWithMessagesAndAuthor(models.Model):\n+    author = models.ForeignKey(User, verbose_name='Modérateur', related_name='+')\n+    # TODO: définir ceci en fonction de la date du starting_message\n+    start_date = models.DateTimeField(verbose_name='Date de démarrage', blank=True, null=True,\n+                                        db_index=True)\n+    # TODO: définir ceci en fonction de la date du ending_message\n+    end_date = models.DateTimeField(verbose_name='Date de fin', blank=True, null=True)\n+    start_message = models.ForeignKey(Message, verbose_name='Message d\\'annonce',\n+                                         related_name='+', blank=True, null=True)\n+    end_message = models.ForeignKey(Message, verbose_name='Message de cloture',\n+                                       related_name='+', blank=True, null=True)\n+\n+    class Meta:\n+        abstract = True\n+        ordering = ['date_started']\n+\n+    def start(self):\n+        assert self.start_date is None","path":"app/aldp/models.py","position":24,"original_position":24,"commit_id":"3ba9e9ca588c0764ec590ec3297a4d9150721b13","original_commit_id":"3ba9e9ca588c0764ec590ec3297a4d9150721b13","user":{"login":"roidelapluie","id":291750,"avatar_url":"https://avatars.githubusercontent.com/u/291750?v=3","gravatar_id":"","url":"https://api.github.com/users/roidelapluie","html_url":"https://github.com/roidelapluie","followers_url":"https://api.github.com/users/roidelapluie/followers","following_url":"https://api.github.com/users/roidelapluie/following{/other_user}","gists_url":"https://api.github.com/users/roidelapluie/gists{/gist_id}","starred_url":"https://api.github.com/users/roidelapluie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/roidelapluie/subscriptions","organizations_url":"https://api.github.com/users/roidelapluie/orgs","repos_url":"https://api.github.com/users/roidelapluie/repos","events_url":"https://api.github.com/users/roidelapluie/events{/privacy}","received_events_url":"https://api.github.com/users/roidelapluie/received_events","type":"User","site_admin":false},"body":"@AlexandreDecan un commentaire sur le assert ?","created_at":"2016-01-20T20:48:20Z","updated_at":"2016-01-20T20:48:20Z","html_url":"https://github.com/AlexandreDecan/Lexpage/pull/117#discussion_r50316458","pull_request_url":"https://api.github.com/repos/AlexandreDecan/Lexpage/pulls/117","_links":{"self":{"href":"https://api.github.com/repos/AlexandreDecan/Lexpage/pulls/comments/50316458"},"html":{"href":"https://github.com/AlexandreDecan/Lexpage/pull/117#discussion_r50316458"},"pull_request":{"href":"https://api.github.com/repos/AlexandreDecan/Lexpage/pulls/117"}}},"pull_request":{"url":"https://api.github.com/repos/AlexandreDecan/Lexpage/pulls/117","id":56656748,"html_url":"https://github.com/AlexandreDecan/Lexpage/pull/117","diff_url":"https://github.com/AlexandreDecan/Lexpage/pull/117.diff","patch_url":"https://github.com/AlexandreDecan/Lexpage/pull/117.patch","issue_url":"https://api.github.com/repos/AlexandreDecan/Lexpage/issues/117","number":117,"state":"open","locked":false,"title":"Implement the first ALDP models","user":{"login":"roidelapluie","id":291750,"avatar_url":"https://avatars.githubusercontent.com/u/291750?v=3","gravatar_id":"","url":"https://api.github.com/users/roidelapluie","html_url":"https://github.com/roidelapluie","followers_url":"https://api.github.com/users/roidelapluie/followers","following_url":"https://api.github.com/users/roidelapluie/following{/other_user}","gists_url":"https://api.github.com/users/roidelapluie/gists{/gist_id}","starred_url":"https://api.github.com/users/roidelapluie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/roidelapluie/subscriptions","organizations_url":"https://api.github.com/users/roidelapluie/orgs","repos_url":"https://api.github.com/users/roidelapluie/repos","events_url":"https://api.github.com/users/roidelapluie/events{/privacy}","received_events_url":"https://api.github.com/users/roidelapluie/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-01-20T19:42:25Z","updated_at":"2016-01-20T20:48:20Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7b4438b0da4a1c1f7ce7c20e4a9592151c42d0b3","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/AlexandreDecan/Lexpage/pulls/117/commits","review_comments_url":"https://api.github.com/repos/AlexandreDecan/Lexpage/pulls/117/comments","review_comment_url":"https://api.github.com/repos/AlexandreDecan/Lexpage/pulls/comments{/number}","comments_url":"https://api.github.com/repos/AlexandreDecan/Lexpage/issues/117/comments","statuses_url":"https://api.github.com/repos/AlexandreDecan/Lexpage/statuses/3ba9e9ca588c0764ec590ec3297a4d9150721b13","head":{"label":"roidelapluie:aldp","ref":"aldp","sha":"3ba9e9ca588c0764ec590ec3297a4d9150721b13","user":{"login":"roidelapluie","id":291750,"avatar_url":"https://avatars.githubusercontent.com/u/291750?v=3","gravatar_id":"","url":"https://api.github.com/users/roidelapluie","html_url":"https://github.com/roidelapluie","followers_url":"https://api.github.com/users/roidelapluie/followers","following_url":"https://api.github.com/users/roidelapluie/following{/other_user}","gists_url":"https://api.github.com/users/roidelapluie/gists{/gist_id}","starred_url":"https://api.github.com/users/roidelapluie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/roidelapluie/subscriptions","organizations_url":"https://api.github.com/users/roidelapluie/orgs","repos_url":"https://api.github.com/users/roidelapluie/repos","events_url":"https://api.github.com/users/roidelapluie/events{/privacy}","received_events_url":"https://api.github.com/users/roidelapluie/received_events","type":"User","site_admin":false},"repo":{"id":32455862,"name":"Lexpage","full_name":"roidelapluie/Lexpage","owner":{"login":"roidelapluie","id":291750,"avatar_url":"https://avatars.githubusercontent.com/u/291750?v=3","gravatar_id":"","url":"https://api.github.com/users/roidelapluie","html_url":"https://github.com/roidelapluie","followers_url":"https://api.github.com/users/roidelapluie/followers","following_url":"https://api.github.com/users/roidelapluie/following{/other_user}","gists_url":"https://api.github.com/users/roidelapluie/gists{/gist_id}","starred_url":"https://api.github.com/users/roidelapluie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/roidelapluie/subscriptions","organizations_url":"https://api.github.com/users/roidelapluie/orgs","repos_url":"https://api.github.com/users/roidelapluie/repos","events_url":"https://api.github.com/users/roidelapluie/events{/privacy}","received_events_url":"https://api.github.com/users/roidelapluie/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/roidelapluie/Lexpage","description":"Code Python/Django à la base du Lexpage v4","fork":true,"url":"https://api.github.com/repos/roidelapluie/Lexpage","forks_url":"https://api.github.com/repos/roidelapluie/Lexpage/forks","keys_url":"https://api.github.com/repos/roidelapluie/Lexpage/keys{/key_id}","collaborators_url":"https://api.github.com/repos/roidelapluie/Lexpage/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/roidelapluie/Lexpage/teams","hooks_url":"https://api.github.com/repos/roidelapluie/Lexpage/hooks","issue_events_url":"https://api.github.com/repos/roidelapluie/Lexpage/issues/events{/number}","events_url":"https://api.github.com/repos/roidelapluie/Lexpage/events","assignees_url":"https://api.github.com/repos/roidelapluie/Lexpage/assignees{/user}","branches_url":"https://api.github.com/repos/roidelapluie/Lexpage/branches{/branch}","tags_url":"https://api.github.com/repos/roidelapluie/Lexpage/tags","blobs_url":"https://api.github.com/repos/roidelapluie/Lexpage/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/roidelapluie/Lexpage/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/roidelapluie/Lexpage/git/refs{/sha}","trees_url":"https://api.github.com/repos/roidelapluie/Lexpage/git/trees{/sha}","statuses_url":"https://api.github.com/repos/roidelapluie/Lexpage/statuses/{sha}","languages_url":"https://api.github.com/repos/roidelapluie/Lexpage/languages","stargazers_url":"https://api.github.com/repos/roidelapluie/Lexpage/stargazers","contributors_url":"https://api.github.com/repos/roidelapluie/Lexpage/contributors","subscribers_url":"https://api.github.com/repos/roidelapluie/Lexpage/subscribers","subscription_url":"https://api.github.com/repos/roidelapluie/Lexpage/subscription","commits_url":"https://api.github.com/repos/roidelapluie/Lexpage/commits{/sha}","git_commits_url":"https://api.github.com/repos/roidelapluie/Lexpage/git/commits{/sha}","comments_url":"https://api.github.com/repos/roidelapluie/Lexpage/comments{/number}","issue_comment_url":"https://api.github.com/repos/roidelapluie/Lexpage/issues/comments{/number}","contents_url":"https://api.github.com/repos/roidelapluie/Lexpage/contents/{+path}","compare_url":"https://api.github.com/repos/roidelapluie/Lexpage/compare/{base}...{head}","merges_url":"https://api.github.com/repos/roidelapluie/Lexpage/merges","archive_url":"https://api.github.com/repos/roidelapluie/Lexpage/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/roidelapluie/Lexpage/downloads","issues_url":"https://api.github.com/repos/roidelapluie/Lexpage/issues{/number}","pulls_url":"https://api.github.com/repos/roidelapluie/Lexpage/pulls{/number}","milestones_url":"https://api.github.com/repos/roidelapluie/Lexpage/milestones{/number}","notifications_url":"https://api.github.com/repos/roidelapluie/Lexpage/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/roidelapluie/Lexpage/labels{/name}","releases_url":"https://api.github.com/repos/roidelapluie/Lexpage/releases{/id}","created_at":"2015-03-18T11:53:42Z","updated_at":"2015-03-18T11:54:01Z","pushed_at":"2016-01-20T20:47:43Z","git_url":"git://github.com/roidelapluie/Lexpage.git","ssh_url":"git@github.com:roidelapluie/Lexpage.git","clone_url":"https://github.com/roidelapluie/Lexpage.git","svn_url":"https://github.com/roidelapluie/Lexpage","homepage":"http://www.lexpage.net/","size":2663,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"AlexandreDecan:ALDP","ref":"ALDP","sha":"f32bd6baf623b0b50ce87edd7127ec71e47aa046","user":{"login":"AlexandreDecan","id":4992216,"avatar_url":"https://avatars.githubusercontent.com/u/4992216?v=3","gravatar_id":"","url":"https://api.github.com/users/AlexandreDecan","html_url":"https://github.com/AlexandreDecan","followers_url":"https://api.github.com/users/AlexandreDecan/followers","following_url":"https://api.github.com/users/AlexandreDecan/following{/other_user}","gists_url":"https://api.github.com/users/AlexandreDecan/gists{/gist_id}","starred_url":"https://api.github.com/users/AlexandreDecan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlexandreDecan/subscriptions","organizations_url":"https://api.github.com/users/AlexandreDecan/orgs","repos_url":"https://api.github.com/users/AlexandreDecan/repos","events_url":"https://api.github.com/users/AlexandreDecan/events{/privacy}","received_events_url":"https://api.github.com/users/AlexandreDecan/received_events","type":"User","site_admin":false},"repo":{"id":30757388,"name":"Lexpage","full_name":"AlexandreDecan/Lexpage","owner":{"login":"AlexandreDecan","id":4992216,"avatar_url":"https://avatars.githubusercontent.com/u/4992216?v=3","gravatar_id":"","url":"https://api.github.com/users/AlexandreDecan","html_url":"https://github.com/AlexandreDecan","followers_url":"https://api.github.com/users/AlexandreDecan/followers","following_url":"https://api.github.com/users/AlexandreDecan/following{/other_user}","gists_url":"https://api.github.com/users/AlexandreDecan/gists{/gist_id}","starred_url":"https://api.github.com/users/AlexandreDecan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlexandreDecan/subscriptions","organizations_url":"https://api.github.com/users/AlexandreDecan/orgs","repos_url":"https://api.github.com/users/AlexandreDecan/repos","events_url":"https://api.github.com/users/AlexandreDecan/events{/privacy}","received_events_url":"https://api.github.com/users/AlexandreDecan/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/AlexandreDecan/Lexpage","description":"Code Python/Django à la base du Lexpage v4 http://www.lexpage.net","fork":false,"url":"https://api.github.com/repos/AlexandreDecan/Lexpage","forks_url":"https://api.github.com/repos/AlexandreDecan/Lexpage/forks","keys_url":"https://api.github.com/repos/AlexandreDecan/Lexpage/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AlexandreDecan/Lexpage/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AlexandreDecan/Lexpage/teams","hooks_url":"https://api.github.com/repos/AlexandreDecan/Lexpage/hooks","issue_events_url":"https://api.github.com/repos/AlexandreDecan/Lexpage/issues/events{/number}","events_url":"https://api.github.com/repos/AlexandreDecan/Lexpage/events","assignees_url":"https://api.github.com/repos/AlexandreDecan/Lexpage/assignees{/user}","branches_url":"https://api.github.com/repos/AlexandreDecan/Lexpage/branches{/branch}","tags_url":"https://api.github.com/repos/AlexandreDecan/Lexpage/tags","blobs_url":"https://api.github.com/repos/AlexandreDecan/Lexpage/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AlexandreDecan/Lexpage/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AlexandreDecan/Lexpage/git/refs{/sha}","trees_url":"https://api.github.com/repos/AlexandreDecan/Lexpage/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AlexandreDecan/Lexpage/statuses/{sha}","languages_url":"https://api.github.com/repos/AlexandreDecan/Lexpage/languages","stargazers_url":"https://api.github.com/repos/AlexandreDecan/Lexpage/stargazers","contributors_url":"https://api.github.com/repos/AlexandreDecan/Lexpage/contributors","subscribers_url":"https://api.github.com/repos/AlexandreDecan/Lexpage/subscribers","subscription_url":"https://api.github.com/repos/AlexandreDecan/Lexpage/subscription","commits_url":"https://api.github.com/repos/AlexandreDecan/Lexpage/commits{/sha}","git_commits_url":"https://api.github.com/repos/AlexandreDecan/Lexpage/git/commits{/sha}","comments_url":"https://api.github.com/repos/AlexandreDecan/Lexpage/comments{/number}","issue_comment_url":"https://api.github.com/repos/AlexandreDecan/Lexpage/issues/comments{/number}","contents_url":"https://api.github.com/repos/AlexandreDecan/Lexpage/contents/{+path}","compare_url":"https://api.github.com/repos/AlexandreDecan/Lexpage/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AlexandreDecan/Lexpage/merges","archive_url":"https://api.github.com/repos/AlexandreDecan/Lexpage/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AlexandreDecan/Lexpage/downloads","issues_url":"https://api.github.com/repos/AlexandreDecan/Lexpage/issues{/number}","pulls_url":"https://api.github.com/repos/AlexandreDecan/Lexpage/pulls{/number}","milestones_url":"https://api.github.com/repos/AlexandreDecan/Lexpage/milestones{/number}","notifications_url":"https://api.github.com/repos/AlexandreDecan/Lexpage/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AlexandreDecan/Lexpage/labels{/name}","releases_url":"https://api.github.com/repos/AlexandreDecan/Lexpage/releases{/id}","created_at":"2015-02-13T13:26:59Z","updated_at":"2016-01-12T15:36:31Z","pushed_at":"2016-01-20T20:47:43Z","git_url":"git://github.com/AlexandreDecan/Lexpage.git","ssh_url":"git@github.com:AlexandreDecan/Lexpage.git","clone_url":"https://github.com/AlexandreDecan/Lexpage.git","svn_url":"https://github.com/AlexandreDecan/Lexpage","homepage":"","size":2643,"stargazers_count":4,"watchers_count":4,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":17,"forks":1,"open_issues":17,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/AlexandreDecan/Lexpage/pulls/117"},"html":{"href":"https://github.com/AlexandreDecan/Lexpage/pull/117"},"issue":{"href":"https://api.github.com/repos/AlexandreDecan/Lexpage/issues/117"},"comments":{"href":"https://api.github.com/repos/AlexandreDecan/Lexpage/issues/117/comments"},"review_comments":{"href":"https://api.github.com/repos/AlexandreDecan/Lexpage/pulls/117/comments"},"review_comment":{"href":"https://api.github.com/repos/AlexandreDecan/Lexpage/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/AlexandreDecan/Lexpage/pulls/117/commits"},"statuses":{"href":"https://api.github.com/repos/AlexandreDecan/Lexpage/statuses/3ba9e9ca588c0764ec590ec3297a4d9150721b13"}}}}