{"action":"created","comment":{"url":"https://api.github.com/repos/tahirawan4/Martium/pulls/comments/138193432","pull_request_review_id":61957987,"id":138193432,"diff_hunk":"@@ -0,0 +1,119 @@\n+from django.db import models\n+from django.contrib.auth.models import User\n+from django.core.urlresolvers import reverse\n+\n+\n+\n+class TimeStampedModel(models.Model):\n+    created = models.DateTimeField(auto_now_add=True)\n+    modified = models.DateTimeField(auto_now=True)\n+    isRemove = models.BooleanField(default=False)\n+    class Meta:\n+        abstract = True\n+\n+\n+class Author(models.Model):\n+    user = models.ForeignKey(User, related_name='author',db_index=True)\n+    avatar = models.ImageField(upload_to='gallery/avatar/%Y/%m/%d',\n+                               null=True,\n+                               blank=True,\n+                               help_text=\"Upload your photo for Avatar\")\n+    about = models.TextField()\n+    website = models.URLField(max_length=200, blank=True, null=True)\n+    is_remove = models.BooleanField(default=False)\n+\n+    def __str__(self):\n+        return self.user.username\n+\n+    def get_absolute_url(self):\n+        return reverse('author_posts_page',\n+                       kwargs={'username': self.user.username})\n+\n+    class Meta:\n+        verbose_name = 'Detail Author'\n+        verbose_name_plural = 'Authors'\n+\n+class FeedsApiUrl(models.QuerySet):\n+    api_url = models.TextField(null=True)\n+    description = models.TextField(null=True)\n+    time = models.ForeignKey(TimeStampedModel,on_delete=models.CASCADE,related_name='time_stamp',db_index=True)\n+    is_remove = models.BooleanField(default=False)\n+    def published(self):\n+        return self.filter(publish=True)\n+\n+\n+class Feeds(TimeStampedModel):\n+    author = models.ForeignKey(Author, related_name='author_post')\n+    title = models.CharField(max_length=200)\n+    slug = models.SlugField(max_length=200, unique=True)\n+    cover = models.ImageField(upload_to='gallery/covers/%Y/%m/%d',\n+                              null=True,\n+                              blank=True,\n+                              help_text='Optional cover post')\n+    description = RedactorField()\n+    tags = models.ManyToManyField('Tag')\n+    keywords = models.CharField(max_length=200, null=True, blank=True,\n+                                help_text='Keywords sparate by comma.')\n+    meta_description = models.TextField(null=True, blank=True)\n+\n+    publish = models.BooleanField(default=True)\n+    objects = FeedsApiUrl.as_manager()\n+    is_remove = models.BooleanField(default=False)\n+\n+    def get_absolute_url(self):\n+        return reverse('detail_post_page', kwargs={'slug': self.slug})\n+\n+    @property\n+    def total_visitors(self):\n+        return Visitor.objects.filter(post__pk=self.pk).count()\n+\n+    def __str__(self):\n+        return self.title\n+\n+    class Meta:\n+        verbose_name = 'Detail Post'\n+        verbose_name_plural = 'Posts'\n+        ordering = [\"-created\"]\n+\n+\n+class Page(TimeStampedModel):\n+    author = models.ForeignKey(Author, related_name='author_page')\n+    title = models.CharField(max_length=200)\n+    slug = models.SlugField(max_length=200, unique=True)\n+    description = RedactorField()","path":"parser/models.py","position":83,"original_position":83,"commit_id":"f7111e6dcaf51007a14a5096fe93846713d72570","original_commit_id":"f7111e6dcaf51007a14a5096fe93846713d72570","user":{"login":"tahirawan4","id":6524024,"avatar_url":"https://avatars3.githubusercontent.com/u/6524024?v=4","gravatar_id":"","url":"https://api.github.com/users/tahirawan4","html_url":"https://github.com/tahirawan4","followers_url":"https://api.github.com/users/tahirawan4/followers","following_url":"https://api.github.com/users/tahirawan4/following{/other_user}","gists_url":"https://api.github.com/users/tahirawan4/gists{/gist_id}","starred_url":"https://api.github.com/users/tahirawan4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tahirawan4/subscriptions","organizations_url":"https://api.github.com/users/tahirawan4/orgs","repos_url":"https://api.github.com/users/tahirawan4/repos","events_url":"https://api.github.com/users/tahirawan4/events{/privacy}","received_events_url":"https://api.github.com/users/tahirawan4/received_events","type":"User","site_admin":false},"body":"Same here?","created_at":"2017-09-11T21:12:59Z","updated_at":"2017-09-11T21:12:59Z","html_url":"https://github.com/tahirawan4/Martium/pull/2#discussion_r138193432","pull_request_url":"https://api.github.com/repos/tahirawan4/Martium/pulls/2","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/tahirawan4/Martium/pulls/comments/138193432"},"html":{"href":"https://github.com/tahirawan4/Martium/pull/2#discussion_r138193432"},"pull_request":{"href":"https://api.github.com/repos/tahirawan4/Martium/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/tahirawan4/Martium/pulls/2","id":139919190,"html_url":"https://github.com/tahirawan4/Martium/pull/2","diff_url":"https://github.com/tahirawan4/Martium/pull/2.diff","patch_url":"https://github.com/tahirawan4/Martium/pull/2.patch","issue_url":"https://api.github.com/repos/tahirawan4/Martium/issues/2","number":2,"state":"open","locked":false,"title":"Atizaz abid","user":{"login":"aitzazabid","id":14799529,"avatar_url":"https://avatars1.githubusercontent.com/u/14799529?v=4","gravatar_id":"","url":"https://api.github.com/users/aitzazabid","html_url":"https://github.com/aitzazabid","followers_url":"https://api.github.com/users/aitzazabid/followers","following_url":"https://api.github.com/users/aitzazabid/following{/other_user}","gists_url":"https://api.github.com/users/aitzazabid/gists{/gist_id}","starred_url":"https://api.github.com/users/aitzazabid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aitzazabid/subscriptions","organizations_url":"https://api.github.com/users/aitzazabid/orgs","repos_url":"https://api.github.com/users/aitzazabid/repos","events_url":"https://api.github.com/users/aitzazabid/events{/privacy}","received_events_url":"https://api.github.com/users/aitzazabid/received_events","type":"User","site_admin":false},"body":"Added the models and dash board and get categories api","created_at":"2017-09-07T22:30:10Z","updated_at":"2017-09-11T21:12:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/tahirawan4/Martium/pulls/2/commits","review_comments_url":"https://api.github.com/repos/tahirawan4/Martium/pulls/2/comments","review_comment_url":"https://api.github.com/repos/tahirawan4/Martium/pulls/comments{/number}","comments_url":"https://api.github.com/repos/tahirawan4/Martium/issues/2/comments","statuses_url":"https://api.github.com/repos/tahirawan4/Martium/statuses/f7111e6dcaf51007a14a5096fe93846713d72570","head":{"label":"tahirawan4:atizaz_abid","ref":"atizaz_abid","sha":"f7111e6dcaf51007a14a5096fe93846713d72570","user":{"login":"tahirawan4","id":6524024,"avatar_url":"https://avatars3.githubusercontent.com/u/6524024?v=4","gravatar_id":"","url":"https://api.github.com/users/tahirawan4","html_url":"https://github.com/tahirawan4","followers_url":"https://api.github.com/users/tahirawan4/followers","following_url":"https://api.github.com/users/tahirawan4/following{/other_user}","gists_url":"https://api.github.com/users/tahirawan4/gists{/gist_id}","starred_url":"https://api.github.com/users/tahirawan4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tahirawan4/subscriptions","organizations_url":"https://api.github.com/users/tahirawan4/orgs","repos_url":"https://api.github.com/users/tahirawan4/repos","events_url":"https://api.github.com/users/tahirawan4/events{/privacy}","received_events_url":"https://api.github.com/users/tahirawan4/received_events","type":"User","site_admin":false},"repo":{"id":100996649,"name":"Martium","full_name":"tahirawan4/Martium","owner":{"login":"tahirawan4","id":6524024,"avatar_url":"https://avatars3.githubusercontent.com/u/6524024?v=4","gravatar_id":"","url":"https://api.github.com/users/tahirawan4","html_url":"https://github.com/tahirawan4","followers_url":"https://api.github.com/users/tahirawan4/followers","following_url":"https://api.github.com/users/tahirawan4/following{/other_user}","gists_url":"https://api.github.com/users/tahirawan4/gists{/gist_id}","starred_url":"https://api.github.com/users/tahirawan4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tahirawan4/subscriptions","organizations_url":"https://api.github.com/users/tahirawan4/orgs","repos_url":"https://api.github.com/users/tahirawan4/repos","events_url":"https://api.github.com/users/tahirawan4/events{/privacy}","received_events_url":"https://api.github.com/users/tahirawan4/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tahirawan4/Martium","description":"FeedLy","fork":false,"url":"https://api.github.com/repos/tahirawan4/Martium","forks_url":"https://api.github.com/repos/tahirawan4/Martium/forks","keys_url":"https://api.github.com/repos/tahirawan4/Martium/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tahirawan4/Martium/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tahirawan4/Martium/teams","hooks_url":"https://api.github.com/repos/tahirawan4/Martium/hooks","issue_events_url":"https://api.github.com/repos/tahirawan4/Martium/issues/events{/number}","events_url":"https://api.github.com/repos/tahirawan4/Martium/events","assignees_url":"https://api.github.com/repos/tahirawan4/Martium/assignees{/user}","branches_url":"https://api.github.com/repos/tahirawan4/Martium/branches{/branch}","tags_url":"https://api.github.com/repos/tahirawan4/Martium/tags","blobs_url":"https://api.github.com/repos/tahirawan4/Martium/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tahirawan4/Martium/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tahirawan4/Martium/git/refs{/sha}","trees_url":"https://api.github.com/repos/tahirawan4/Martium/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tahirawan4/Martium/statuses/{sha}","languages_url":"https://api.github.com/repos/tahirawan4/Martium/languages","stargazers_url":"https://api.github.com/repos/tahirawan4/Martium/stargazers","contributors_url":"https://api.github.com/repos/tahirawan4/Martium/contributors","subscribers_url":"https://api.github.com/repos/tahirawan4/Martium/subscribers","subscription_url":"https://api.github.com/repos/tahirawan4/Martium/subscription","commits_url":"https://api.github.com/repos/tahirawan4/Martium/commits{/sha}","git_commits_url":"https://api.github.com/repos/tahirawan4/Martium/git/commits{/sha}","comments_url":"https://api.github.com/repos/tahirawan4/Martium/comments{/number}","issue_comment_url":"https://api.github.com/repos/tahirawan4/Martium/issues/comments{/number}","contents_url":"https://api.github.com/repos/tahirawan4/Martium/contents/{+path}","compare_url":"https://api.github.com/repos/tahirawan4/Martium/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tahirawan4/Martium/merges","archive_url":"https://api.github.com/repos/tahirawan4/Martium/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tahirawan4/Martium/downloads","issues_url":"https://api.github.com/repos/tahirawan4/Martium/issues{/number}","pulls_url":"https://api.github.com/repos/tahirawan4/Martium/pulls{/number}","milestones_url":"https://api.github.com/repos/tahirawan4/Martium/milestones{/number}","notifications_url":"https://api.github.com/repos/tahirawan4/Martium/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tahirawan4/Martium/labels{/name}","releases_url":"https://api.github.com/repos/tahirawan4/Martium/releases{/id}","deployments_url":"https://api.github.com/repos/tahirawan4/Martium/deployments","created_at":"2017-08-21T22:10:56Z","updated_at":"2017-08-29T23:15:51Z","pushed_at":"2017-09-11T18:26:12Z","git_url":"git://github.com/tahirawan4/Martium.git","ssh_url":"git@github.com:tahirawan4/Martium.git","clone_url":"https://github.com/tahirawan4/Martium.git","svn_url":"https://github.com/tahirawan4/Martium","homepage":null,"size":41,"stargazers_count":1,"watchers_count":1,"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":1,"forks":0,"open_issues":1,"watchers":1,"default_branch":"master"}},"base":{"label":"tahirawan4:master","ref":"master","sha":"9c48bf4617af9540ad733c6e40929c361be6b640","user":{"login":"tahirawan4","id":6524024,"avatar_url":"https://avatars3.githubusercontent.com/u/6524024?v=4","gravatar_id":"","url":"https://api.github.com/users/tahirawan4","html_url":"https://github.com/tahirawan4","followers_url":"https://api.github.com/users/tahirawan4/followers","following_url":"https://api.github.com/users/tahirawan4/following{/other_user}","gists_url":"https://api.github.com/users/tahirawan4/gists{/gist_id}","starred_url":"https://api.github.com/users/tahirawan4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tahirawan4/subscriptions","organizations_url":"https://api.github.com/users/tahirawan4/orgs","repos_url":"https://api.github.com/users/tahirawan4/repos","events_url":"https://api.github.com/users/tahirawan4/events{/privacy}","received_events_url":"https://api.github.com/users/tahirawan4/received_events","type":"User","site_admin":false},"repo":{"id":100996649,"name":"Martium","full_name":"tahirawan4/Martium","owner":{"login":"tahirawan4","id":6524024,"avatar_url":"https://avatars3.githubusercontent.com/u/6524024?v=4","gravatar_id":"","url":"https://api.github.com/users/tahirawan4","html_url":"https://github.com/tahirawan4","followers_url":"https://api.github.com/users/tahirawan4/followers","following_url":"https://api.github.com/users/tahirawan4/following{/other_user}","gists_url":"https://api.github.com/users/tahirawan4/gists{/gist_id}","starred_url":"https://api.github.com/users/tahirawan4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tahirawan4/subscriptions","organizations_url":"https://api.github.com/users/tahirawan4/orgs","repos_url":"https://api.github.com/users/tahirawan4/repos","events_url":"https://api.github.com/users/tahirawan4/events{/privacy}","received_events_url":"https://api.github.com/users/tahirawan4/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tahirawan4/Martium","description":"FeedLy","fork":false,"url":"https://api.github.com/repos/tahirawan4/Martium","forks_url":"https://api.github.com/repos/tahirawan4/Martium/forks","keys_url":"https://api.github.com/repos/tahirawan4/Martium/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tahirawan4/Martium/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tahirawan4/Martium/teams","hooks_url":"https://api.github.com/repos/tahirawan4/Martium/hooks","issue_events_url":"https://api.github.com/repos/tahirawan4/Martium/issues/events{/number}","events_url":"https://api.github.com/repos/tahirawan4/Martium/events","assignees_url":"https://api.github.com/repos/tahirawan4/Martium/assignees{/user}","branches_url":"https://api.github.com/repos/tahirawan4/Martium/branches{/branch}","tags_url":"https://api.github.com/repos/tahirawan4/Martium/tags","blobs_url":"https://api.github.com/repos/tahirawan4/Martium/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tahirawan4/Martium/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tahirawan4/Martium/git/refs{/sha}","trees_url":"https://api.github.com/repos/tahirawan4/Martium/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tahirawan4/Martium/statuses/{sha}","languages_url":"https://api.github.com/repos/tahirawan4/Martium/languages","stargazers_url":"https://api.github.com/repos/tahirawan4/Martium/stargazers","contributors_url":"https://api.github.com/repos/tahirawan4/Martium/contributors","subscribers_url":"https://api.github.com/repos/tahirawan4/Martium/subscribers","subscription_url":"https://api.github.com/repos/tahirawan4/Martium/subscription","commits_url":"https://api.github.com/repos/tahirawan4/Martium/commits{/sha}","git_commits_url":"https://api.github.com/repos/tahirawan4/Martium/git/commits{/sha}","comments_url":"https://api.github.com/repos/tahirawan4/Martium/comments{/number}","issue_comment_url":"https://api.github.com/repos/tahirawan4/Martium/issues/comments{/number}","contents_url":"https://api.github.com/repos/tahirawan4/Martium/contents/{+path}","compare_url":"https://api.github.com/repos/tahirawan4/Martium/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tahirawan4/Martium/merges","archive_url":"https://api.github.com/repos/tahirawan4/Martium/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tahirawan4/Martium/downloads","issues_url":"https://api.github.com/repos/tahirawan4/Martium/issues{/number}","pulls_url":"https://api.github.com/repos/tahirawan4/Martium/pulls{/number}","milestones_url":"https://api.github.com/repos/tahirawan4/Martium/milestones{/number}","notifications_url":"https://api.github.com/repos/tahirawan4/Martium/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tahirawan4/Martium/labels{/name}","releases_url":"https://api.github.com/repos/tahirawan4/Martium/releases{/id}","deployments_url":"https://api.github.com/repos/tahirawan4/Martium/deployments","created_at":"2017-08-21T22:10:56Z","updated_at":"2017-08-29T23:15:51Z","pushed_at":"2017-09-11T18:26:12Z","git_url":"git://github.com/tahirawan4/Martium.git","ssh_url":"git@github.com:tahirawan4/Martium.git","clone_url":"https://github.com/tahirawan4/Martium.git","svn_url":"https://github.com/tahirawan4/Martium","homepage":null,"size":41,"stargazers_count":1,"watchers_count":1,"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":1,"forks":0,"open_issues":1,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/tahirawan4/Martium/pulls/2"},"html":{"href":"https://github.com/tahirawan4/Martium/pull/2"},"issue":{"href":"https://api.github.com/repos/tahirawan4/Martium/issues/2"},"comments":{"href":"https://api.github.com/repos/tahirawan4/Martium/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/tahirawan4/Martium/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/tahirawan4/Martium/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/tahirawan4/Martium/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/tahirawan4/Martium/statuses/f7111e6dcaf51007a14a5096fe93846713d72570"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"tahirawan4"}}