{"action":"created","comment":{"url":"https://api.github.com/repos/mozilla/learning-api/pulls/comments/75341746","id":75341746,"diff_hunk":"@@ -0,0 +1,94 @@\n+from django.db import models\n+from django_countries.fields import CountryField\n+from learningapi.collections.models import Collection\n+from learningapi.skills.models import Skill\n+from learningapi.weblitskills.models import WebLitSkill\n+\n+\n+class Tag(models.Model):\n+    \"\"\"\n+    Tags used to describe properties of a resources\n+    \"\"\"\n+    name = models.CharField(max_length=150)\n+\n+    def __str__(self):\n+        return str(self.name)\n+\n+\n+class Activity(models.Model):\n+    \"\"\"\n+    Activity\n+    \"\"\"\n+    title = models.CharField(max_length=300)\n+    subtitle = models.CharField(max_length=300)\n+    description = models.TextField(\n+        blank=True,\n+        null=True,\n+    )\n+    image_url = models.URLField(\n+        max_length=500,\n+        null=True,\n+        blank=True,\n+        help_text='URL to a regular quality image.',\n+    )\n+    image_retina_url = models.URLField(\n+        max_length=500,\n+        null=True,\n+        blank=True,\n+        help_text='URL to a retina quality image.',\n+    )\n+    url = models.URLField(\n+        max_length=500,\n+        null=True,\n+        blank=True,\n+        help_text='URL to an activity.',\n+    )\n+    difficulty = models.CharField(\n+        max_length=50,\n+        default='Beginner',\n+        choices=(\n+            ('Beginner', 'Beginner'),\n+            ('Intermediate', 'Intermediate'),\n+            ('Beginner mobile users', 'Beginner mobile users'),\n+            ('13+', '13+'),\n+            ('JavaScript beginners', 'JavaScript beginners'),\n+        ),\n+        help_text='Difficulty levels for an activity'\n+    )\n+    duration = models.CharField(\n+        max_length=100,\n+        help_text='Time it takes to finish an activity \"90 minutes-2 hours\"'","path":"app/learningapi/activities/models.py","position":60,"original_position":60,"commit_id":"a92e269e9e460fbefe5128f546bec022801db398","original_commit_id":"a92e269e9e460fbefe5128f546bec022801db398","user":{"login":"gideonthomas","id":5816130,"avatar_url":"https://avatars.githubusercontent.com/u/5816130?v=3","gravatar_id":"","url":"https://api.github.com/users/gideonthomas","html_url":"https://github.com/gideonthomas","followers_url":"https://api.github.com/users/gideonthomas/followers","following_url":"https://api.github.com/users/gideonthomas/following{/other_user}","gists_url":"https://api.github.com/users/gideonthomas/gists{/gist_id}","starred_url":"https://api.github.com/users/gideonthomas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gideonthomas/subscriptions","organizations_url":"https://api.github.com/users/gideonthomas/orgs","repos_url":"https://api.github.com/users/gideonthomas/repos","events_url":"https://api.github.com/users/gideonthomas/events{/privacy}","received_events_url":"https://api.github.com/users/gideonthomas/received_events","type":"User","site_admin":false},"body":"Remove the example from this, we don't really know what the format for this is yet","created_at":"2016-08-18T16:29:31Z","updated_at":"2016-08-18T16:29:31Z","html_url":"https://github.com/mozilla/learning-api/pull/1#discussion_r75341746","pull_request_url":"https://api.github.com/repos/mozilla/learning-api/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/mozilla/learning-api/pulls/comments/75341746"},"html":{"href":"https://github.com/mozilla/learning-api/pull/1#discussion_r75341746"},"pull_request":{"href":"https://api.github.com/repos/mozilla/learning-api/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/mozilla/learning-api/pulls/1","id":81351622,"html_url":"https://github.com/mozilla/learning-api/pull/1","diff_url":"https://github.com/mozilla/learning-api/pull/1.diff","patch_url":"https://github.com/mozilla/learning-api/pull/1.patch","issue_url":"https://api.github.com/repos/mozilla/learning-api/issues/1","number":1,"state":"open","locked":false,"title":"Initial work to add learning API for teaching activities","user":{"login":"alicoding","id":4368149,"avatar_url":"https://avatars.githubusercontent.com/u/4368149?v=3","gravatar_id":"","url":"https://api.github.com/users/alicoding","html_url":"https://github.com/alicoding","followers_url":"https://api.github.com/users/alicoding/followers","following_url":"https://api.github.com/users/alicoding/following{/other_user}","gists_url":"https://api.github.com/users/alicoding/gists{/gist_id}","starred_url":"https://api.github.com/users/alicoding/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alicoding/subscriptions","organizations_url":"https://api.github.com/users/alicoding/orgs","repos_url":"https://api.github.com/users/alicoding/repos","events_url":"https://api.github.com/users/alicoding/events{/privacy}","received_events_url":"https://api.github.com/users/alicoding/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-08-15T18:17:51Z","updated_at":"2016-08-18T16:29:31Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9cc5fa8f58f2663bb460fa8bd689b306557a4aeb","assignee":{"login":"gideonthomas","id":5816130,"avatar_url":"https://avatars.githubusercontent.com/u/5816130?v=3","gravatar_id":"","url":"https://api.github.com/users/gideonthomas","html_url":"https://github.com/gideonthomas","followers_url":"https://api.github.com/users/gideonthomas/followers","following_url":"https://api.github.com/users/gideonthomas/following{/other_user}","gists_url":"https://api.github.com/users/gideonthomas/gists{/gist_id}","starred_url":"https://api.github.com/users/gideonthomas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gideonthomas/subscriptions","organizations_url":"https://api.github.com/users/gideonthomas/orgs","repos_url":"https://api.github.com/users/gideonthomas/repos","events_url":"https://api.github.com/users/gideonthomas/events{/privacy}","received_events_url":"https://api.github.com/users/gideonthomas/received_events","type":"User","site_admin":false},"assignees":[{"login":"gideonthomas","id":5816130,"avatar_url":"https://avatars.githubusercontent.com/u/5816130?v=3","gravatar_id":"","url":"https://api.github.com/users/gideonthomas","html_url":"https://github.com/gideonthomas","followers_url":"https://api.github.com/users/gideonthomas/followers","following_url":"https://api.github.com/users/gideonthomas/following{/other_user}","gists_url":"https://api.github.com/users/gideonthomas/gists{/gist_id}","starred_url":"https://api.github.com/users/gideonthomas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gideonthomas/subscriptions","organizations_url":"https://api.github.com/users/gideonthomas/orgs","repos_url":"https://api.github.com/users/gideonthomas/repos","events_url":"https://api.github.com/users/gideonthomas/events{/privacy}","received_events_url":"https://api.github.com/users/gideonthomas/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/mozilla/learning-api/pulls/1/commits","review_comments_url":"https://api.github.com/repos/mozilla/learning-api/pulls/1/comments","review_comment_url":"https://api.github.com/repos/mozilla/learning-api/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mozilla/learning-api/issues/1/comments","statuses_url":"https://api.github.com/repos/mozilla/learning-api/statuses/a92e269e9e460fbefe5128f546bec022801db398","head":{"label":"alicoding:teach-api","ref":"teach-api","sha":"a92e269e9e460fbefe5128f546bec022801db398","user":{"login":"alicoding","id":4368149,"avatar_url":"https://avatars.githubusercontent.com/u/4368149?v=3","gravatar_id":"","url":"https://api.github.com/users/alicoding","html_url":"https://github.com/alicoding","followers_url":"https://api.github.com/users/alicoding/followers","following_url":"https://api.github.com/users/alicoding/following{/other_user}","gists_url":"https://api.github.com/users/alicoding/gists{/gist_id}","starred_url":"https://api.github.com/users/alicoding/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alicoding/subscriptions","organizations_url":"https://api.github.com/users/alicoding/orgs","repos_url":"https://api.github.com/users/alicoding/repos","events_url":"https://api.github.com/users/alicoding/events{/privacy}","received_events_url":"https://api.github.com/users/alicoding/received_events","type":"User","site_admin":false},"repo":{"id":65319051,"name":"learning-api","full_name":"alicoding/learning-api","owner":{"login":"alicoding","id":4368149,"avatar_url":"https://avatars.githubusercontent.com/u/4368149?v=3","gravatar_id":"","url":"https://api.github.com/users/alicoding","html_url":"https://github.com/alicoding","followers_url":"https://api.github.com/users/alicoding/followers","following_url":"https://api.github.com/users/alicoding/following{/other_user}","gists_url":"https://api.github.com/users/alicoding/gists{/gist_id}","starred_url":"https://api.github.com/users/alicoding/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alicoding/subscriptions","organizations_url":"https://api.github.com/users/alicoding/orgs","repos_url":"https://api.github.com/users/alicoding/repos","events_url":"https://api.github.com/users/alicoding/events{/privacy}","received_events_url":"https://api.github.com/users/alicoding/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/alicoding/learning-api","description":"learning.mozilla.org's API server","fork":true,"url":"https://api.github.com/repos/alicoding/learning-api","forks_url":"https://api.github.com/repos/alicoding/learning-api/forks","keys_url":"https://api.github.com/repos/alicoding/learning-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alicoding/learning-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alicoding/learning-api/teams","hooks_url":"https://api.github.com/repos/alicoding/learning-api/hooks","issue_events_url":"https://api.github.com/repos/alicoding/learning-api/issues/events{/number}","events_url":"https://api.github.com/repos/alicoding/learning-api/events","assignees_url":"https://api.github.com/repos/alicoding/learning-api/assignees{/user}","branches_url":"https://api.github.com/repos/alicoding/learning-api/branches{/branch}","tags_url":"https://api.github.com/repos/alicoding/learning-api/tags","blobs_url":"https://api.github.com/repos/alicoding/learning-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alicoding/learning-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alicoding/learning-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/alicoding/learning-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alicoding/learning-api/statuses/{sha}","languages_url":"https://api.github.com/repos/alicoding/learning-api/languages","stargazers_url":"https://api.github.com/repos/alicoding/learning-api/stargazers","contributors_url":"https://api.github.com/repos/alicoding/learning-api/contributors","subscribers_url":"https://api.github.com/repos/alicoding/learning-api/subscribers","subscription_url":"https://api.github.com/repos/alicoding/learning-api/subscription","commits_url":"https://api.github.com/repos/alicoding/learning-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/alicoding/learning-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/alicoding/learning-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/alicoding/learning-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/alicoding/learning-api/contents/{+path}","compare_url":"https://api.github.com/repos/alicoding/learning-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alicoding/learning-api/merges","archive_url":"https://api.github.com/repos/alicoding/learning-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alicoding/learning-api/downloads","issues_url":"https://api.github.com/repos/alicoding/learning-api/issues{/number}","pulls_url":"https://api.github.com/repos/alicoding/learning-api/pulls{/number}","milestones_url":"https://api.github.com/repos/alicoding/learning-api/milestones{/number}","notifications_url":"https://api.github.com/repos/alicoding/learning-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alicoding/learning-api/labels{/name}","releases_url":"https://api.github.com/repos/alicoding/learning-api/releases{/id}","deployments_url":"https://api.github.com/repos/alicoding/learning-api/deployments","created_at":"2016-08-09T18:34:50Z","updated_at":"2016-08-09T18:34:11Z","pushed_at":"2016-08-15T18:16:06Z","git_url":"git://github.com/alicoding/learning-api.git","ssh_url":"git@github.com:alicoding/learning-api.git","clone_url":"https://github.com/alicoding/learning-api.git","svn_url":"https://github.com/alicoding/learning-api","homepage":null,"size":16,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_downloads":true,"has_wiki":true,"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":"mozilla:master","ref":"master","sha":"ab64386ae516df4c0dd8a84b173b9157f58b3a7e","user":{"login":"mozilla","id":131524,"avatar_url":"https://avatars.githubusercontent.com/u/131524?v=3","gravatar_id":"","url":"https://api.github.com/users/mozilla","html_url":"https://github.com/mozilla","followers_url":"https://api.github.com/users/mozilla/followers","following_url":"https://api.github.com/users/mozilla/following{/other_user}","gists_url":"https://api.github.com/users/mozilla/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla/subscriptions","organizations_url":"https://api.github.com/users/mozilla/orgs","repos_url":"https://api.github.com/users/mozilla/repos","events_url":"https://api.github.com/users/mozilla/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla/received_events","type":"Organization","site_admin":false},"repo":{"id":65318993,"name":"learning-api","full_name":"mozilla/learning-api","owner":{"login":"mozilla","id":131524,"avatar_url":"https://avatars.githubusercontent.com/u/131524?v=3","gravatar_id":"","url":"https://api.github.com/users/mozilla","html_url":"https://github.com/mozilla","followers_url":"https://api.github.com/users/mozilla/followers","following_url":"https://api.github.com/users/mozilla/following{/other_user}","gists_url":"https://api.github.com/users/mozilla/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla/subscriptions","organizations_url":"https://api.github.com/users/mozilla/orgs","repos_url":"https://api.github.com/users/mozilla/repos","events_url":"https://api.github.com/users/mozilla/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mozilla/learning-api","description":"learning.mozilla.org's API server","fork":false,"url":"https://api.github.com/repos/mozilla/learning-api","forks_url":"https://api.github.com/repos/mozilla/learning-api/forks","keys_url":"https://api.github.com/repos/mozilla/learning-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mozilla/learning-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mozilla/learning-api/teams","hooks_url":"https://api.github.com/repos/mozilla/learning-api/hooks","issue_events_url":"https://api.github.com/repos/mozilla/learning-api/issues/events{/number}","events_url":"https://api.github.com/repos/mozilla/learning-api/events","assignees_url":"https://api.github.com/repos/mozilla/learning-api/assignees{/user}","branches_url":"https://api.github.com/repos/mozilla/learning-api/branches{/branch}","tags_url":"https://api.github.com/repos/mozilla/learning-api/tags","blobs_url":"https://api.github.com/repos/mozilla/learning-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mozilla/learning-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mozilla/learning-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/mozilla/learning-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mozilla/learning-api/statuses/{sha}","languages_url":"https://api.github.com/repos/mozilla/learning-api/languages","stargazers_url":"https://api.github.com/repos/mozilla/learning-api/stargazers","contributors_url":"https://api.github.com/repos/mozilla/learning-api/contributors","subscribers_url":"https://api.github.com/repos/mozilla/learning-api/subscribers","subscription_url":"https://api.github.com/repos/mozilla/learning-api/subscription","commits_url":"https://api.github.com/repos/mozilla/learning-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/mozilla/learning-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/mozilla/learning-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/mozilla/learning-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/mozilla/learning-api/contents/{+path}","compare_url":"https://api.github.com/repos/mozilla/learning-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mozilla/learning-api/merges","archive_url":"https://api.github.com/repos/mozilla/learning-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mozilla/learning-api/downloads","issues_url":"https://api.github.com/repos/mozilla/learning-api/issues{/number}","pulls_url":"https://api.github.com/repos/mozilla/learning-api/pulls{/number}","milestones_url":"https://api.github.com/repos/mozilla/learning-api/milestones{/number}","notifications_url":"https://api.github.com/repos/mozilla/learning-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mozilla/learning-api/labels{/name}","releases_url":"https://api.github.com/repos/mozilla/learning-api/releases{/id}","deployments_url":"https://api.github.com/repos/mozilla/learning-api/deployments","created_at":"2016-08-09T18:33:46Z","updated_at":"2016-08-09T18:34:11Z","pushed_at":"2016-08-15T18:17:51Z","git_url":"git://github.com/mozilla/learning-api.git","ssh_url":"git@github.com:mozilla/learning-api.git","clone_url":"https://github.com/mozilla/learning-api.git","svn_url":"https://github.com/mozilla/learning-api","homepage":null,"size":5,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mozilla/learning-api/pulls/1"},"html":{"href":"https://github.com/mozilla/learning-api/pull/1"},"issue":{"href":"https://api.github.com/repos/mozilla/learning-api/issues/1"},"comments":{"href":"https://api.github.com/repos/mozilla/learning-api/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/mozilla/learning-api/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/mozilla/learning-api/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mozilla/learning-api/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/mozilla/learning-api/statuses/a92e269e9e460fbefe5128f546bec022801db398"}}}}
{"actor":{"display_login":"gideonthomas"}}