{"action":"created","comment":{"url":"https://api.github.com/repos/django/django/pulls/comments/27556249","id":27556249,"diff_hunk":"@@ -276,6 +276,14 @@ class to make it importable::\n Please refer to the notes about :ref:`historical-models` in migrations to see\n the implications that come along.\n \n+.. _initial-property:\n+\n+.. note::\n+\n+    You may add an ``initial = True`` class property to the ``Migration`` class\n+    to have Django apply the \"initial migration\" logic when the\n+    :djadminopt:`--fake-initial` argument is used.","path":"docs/topics/migrations.txt","position":10,"original_position":10,"commit_id":"de8523763b46064753b0f467024ab528d6a7abbf","original_commit_id":"de8523763b46064753b0f467024ab528d6a7abbf","user":{"login":"MarkusH","id":475613,"avatar_url":"https://avatars.githubusercontent.com/u/475613?v=3","gravatar_id":"","url":"https://api.github.com/users/MarkusH","html_url":"https://github.com/MarkusH","followers_url":"https://api.github.com/users/MarkusH/followers","following_url":"https://api.github.com/users/MarkusH/following{/other_user}","gists_url":"https://api.github.com/users/MarkusH/gists{/gist_id}","starred_url":"https://api.github.com/users/MarkusH/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MarkusH/subscriptions","organizations_url":"https://api.github.com/users/MarkusH/orgs","repos_url":"https://api.github.com/users/MarkusH/repos","events_url":"https://api.github.com/users/MarkusH/events{/privacy}","received_events_url":"https://api.github.com/users/MarkusH/received_events","type":"User","site_admin":false},"body":":+1: for both.","created_at":"2015-04-01T09:47:57Z","updated_at":"2015-04-01T09:47:57Z","html_url":"https://github.com/django/django/pull/4420#discussion_r27556249","pull_request_url":"https://api.github.com/repos/django/django/pulls/4420","_links":{"self":{"href":"https://api.github.com/repos/django/django/pulls/comments/27556249"},"html":{"href":"https://github.com/django/django/pull/4420#discussion_r27556249"},"pull_request":{"href":"https://api.github.com/repos/django/django/pulls/4420"}}},"pull_request":{"url":"https://api.github.com/repos/django/django/pulls/4420","id":32363425,"html_url":"https://github.com/django/django/pull/4420","diff_url":"https://github.com/django/django/pull/4420.diff","patch_url":"https://github.com/django/django/pull/4420.patch","issue_url":"https://api.github.com/repos/django/django/issues/4420","number":4420,"state":"open","locked":false,"title":"Fixed 24375 -- Added Migration.initial property","user":{"login":"akulakov","id":243874,"avatar_url":"https://avatars.githubusercontent.com/u/243874?v=3","gravatar_id":"","url":"https://api.github.com/users/akulakov","html_url":"https://github.com/akulakov","followers_url":"https://api.github.com/users/akulakov/followers","following_url":"https://api.github.com/users/akulakov/following{/other_user}","gists_url":"https://api.github.com/users/akulakov/gists{/gist_id}","starred_url":"https://api.github.com/users/akulakov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akulakov/subscriptions","organizations_url":"https://api.github.com/users/akulakov/orgs","repos_url":"https://api.github.com/users/akulakov/repos","events_url":"https://api.github.com/users/akulakov/events{/privacy}","received_events_url":"https://api.github.com/users/akulakov/received_events","type":"User","site_admin":false},"body":"Added Migration.initial property to be check when\r\n--fake-initial arg is used, initial will be set to\r\nTrue for all initial migrations (this is particularly\r\nuseful when initial migrations are split). Users may\r\nalso set `initial = True` manually.","created_at":"2015-03-31T20:40:23Z","updated_at":"2015-04-01T09:47:57Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6591f837c53cedf11ada98fa4a425819b1896ef2","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/django/django/pulls/4420/commits","review_comments_url":"https://api.github.com/repos/django/django/pulls/4420/comments","review_comment_url":"https://api.github.com/repos/django/django/pulls/comments{/number}","comments_url":"https://api.github.com/repos/django/django/issues/4420/comments","statuses_url":"https://api.github.com/repos/django/django/statuses/de8523763b46064753b0f467024ab528d6a7abbf","head":{"label":"akulakov:24375-add-initial-property","ref":"24375-add-initial-property","sha":"de8523763b46064753b0f467024ab528d6a7abbf","user":{"login":"akulakov","id":243874,"avatar_url":"https://avatars.githubusercontent.com/u/243874?v=3","gravatar_id":"","url":"https://api.github.com/users/akulakov","html_url":"https://github.com/akulakov","followers_url":"https://api.github.com/users/akulakov/followers","following_url":"https://api.github.com/users/akulakov/following{/other_user}","gists_url":"https://api.github.com/users/akulakov/gists{/gist_id}","starred_url":"https://api.github.com/users/akulakov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akulakov/subscriptions","organizations_url":"https://api.github.com/users/akulakov/orgs","repos_url":"https://api.github.com/users/akulakov/repos","events_url":"https://api.github.com/users/akulakov/events{/privacy}","received_events_url":"https://api.github.com/users/akulakov/received_events","type":"User","site_admin":false},"repo":{"id":29978799,"name":"django-1","full_name":"akulakov/django-1","owner":{"login":"akulakov","id":243874,"avatar_url":"https://avatars.githubusercontent.com/u/243874?v=3","gravatar_id":"","url":"https://api.github.com/users/akulakov","html_url":"https://github.com/akulakov","followers_url":"https://api.github.com/users/akulakov/followers","following_url":"https://api.github.com/users/akulakov/following{/other_user}","gists_url":"https://api.github.com/users/akulakov/gists{/gist_id}","starred_url":"https://api.github.com/users/akulakov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akulakov/subscriptions","organizations_url":"https://api.github.com/users/akulakov/orgs","repos_url":"https://api.github.com/users/akulakov/repos","events_url":"https://api.github.com/users/akulakov/events{/privacy}","received_events_url":"https://api.github.com/users/akulakov/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/akulakov/django-1","description":"The Web framework for perfectionists with deadlines.","fork":true,"url":"https://api.github.com/repos/akulakov/django-1","forks_url":"https://api.github.com/repos/akulakov/django-1/forks","keys_url":"https://api.github.com/repos/akulakov/django-1/keys{/key_id}","collaborators_url":"https://api.github.com/repos/akulakov/django-1/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/akulakov/django-1/teams","hooks_url":"https://api.github.com/repos/akulakov/django-1/hooks","issue_events_url":"https://api.github.com/repos/akulakov/django-1/issues/events{/number}","events_url":"https://api.github.com/repos/akulakov/django-1/events","assignees_url":"https://api.github.com/repos/akulakov/django-1/assignees{/user}","branches_url":"https://api.github.com/repos/akulakov/django-1/branches{/branch}","tags_url":"https://api.github.com/repos/akulakov/django-1/tags","blobs_url":"https://api.github.com/repos/akulakov/django-1/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/akulakov/django-1/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/akulakov/django-1/git/refs{/sha}","trees_url":"https://api.github.com/repos/akulakov/django-1/git/trees{/sha}","statuses_url":"https://api.github.com/repos/akulakov/django-1/statuses/{sha}","languages_url":"https://api.github.com/repos/akulakov/django-1/languages","stargazers_url":"https://api.github.com/repos/akulakov/django-1/stargazers","contributors_url":"https://api.github.com/repos/akulakov/django-1/contributors","subscribers_url":"https://api.github.com/repos/akulakov/django-1/subscribers","subscription_url":"https://api.github.com/repos/akulakov/django-1/subscription","commits_url":"https://api.github.com/repos/akulakov/django-1/commits{/sha}","git_commits_url":"https://api.github.com/repos/akulakov/django-1/git/commits{/sha}","comments_url":"https://api.github.com/repos/akulakov/django-1/comments{/number}","issue_comment_url":"https://api.github.com/repos/akulakov/django-1/issues/comments{/number}","contents_url":"https://api.github.com/repos/akulakov/django-1/contents/{+path}","compare_url":"https://api.github.com/repos/akulakov/django-1/compare/{base}...{head}","merges_url":"https://api.github.com/repos/akulakov/django-1/merges","archive_url":"https://api.github.com/repos/akulakov/django-1/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/akulakov/django-1/downloads","issues_url":"https://api.github.com/repos/akulakov/django-1/issues{/number}","pulls_url":"https://api.github.com/repos/akulakov/django-1/pulls{/number}","milestones_url":"https://api.github.com/repos/akulakov/django-1/milestones{/number}","notifications_url":"https://api.github.com/repos/akulakov/django-1/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/akulakov/django-1/labels{/name}","releases_url":"https://api.github.com/repos/akulakov/django-1/releases{/id}","created_at":"2015-01-28T17:17:41Z","updated_at":"2015-02-05T14:59:48Z","pushed_at":"2015-04-01T01:47:24Z","git_url":"git://github.com/akulakov/django-1.git","ssh_url":"git@github.com:akulakov/django-1.git","clone_url":"https://github.com/akulakov/django-1.git","svn_url":"https://github.com/akulakov/django-1","homepage":"https://www.djangoproject.com/","size":125079,"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":"django:master","ref":"master","sha":"48ddc66219deaac2aa5fa3d2cb0f420404d6b8ec","user":{"login":"django","id":27804,"avatar_url":"https://avatars.githubusercontent.com/u/27804?v=3","gravatar_id":"","url":"https://api.github.com/users/django","html_url":"https://github.com/django","followers_url":"https://api.github.com/users/django/followers","following_url":"https://api.github.com/users/django/following{/other_user}","gists_url":"https://api.github.com/users/django/gists{/gist_id}","starred_url":"https://api.github.com/users/django/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/django/subscriptions","organizations_url":"https://api.github.com/users/django/orgs","repos_url":"https://api.github.com/users/django/repos","events_url":"https://api.github.com/users/django/events{/privacy}","received_events_url":"https://api.github.com/users/django/received_events","type":"Organization","site_admin":false},"repo":{"id":4164482,"name":"django","full_name":"django/django","owner":{"login":"django","id":27804,"avatar_url":"https://avatars.githubusercontent.com/u/27804?v=3","gravatar_id":"","url":"https://api.github.com/users/django","html_url":"https://github.com/django","followers_url":"https://api.github.com/users/django/followers","following_url":"https://api.github.com/users/django/following{/other_user}","gists_url":"https://api.github.com/users/django/gists{/gist_id}","starred_url":"https://api.github.com/users/django/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/django/subscriptions","organizations_url":"https://api.github.com/users/django/orgs","repos_url":"https://api.github.com/users/django/repos","events_url":"https://api.github.com/users/django/events{/privacy}","received_events_url":"https://api.github.com/users/django/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/django/django","description":"The Web framework for perfectionists with deadlines.","fork":false,"url":"https://api.github.com/repos/django/django","forks_url":"https://api.github.com/repos/django/django/forks","keys_url":"https://api.github.com/repos/django/django/keys{/key_id}","collaborators_url":"https://api.github.com/repos/django/django/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/django/django/teams","hooks_url":"https://api.github.com/repos/django/django/hooks","issue_events_url":"https://api.github.com/repos/django/django/issues/events{/number}","events_url":"https://api.github.com/repos/django/django/events","assignees_url":"https://api.github.com/repos/django/django/assignees{/user}","branches_url":"https://api.github.com/repos/django/django/branches{/branch}","tags_url":"https://api.github.com/repos/django/django/tags","blobs_url":"https://api.github.com/repos/django/django/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/django/django/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/django/django/git/refs{/sha}","trees_url":"https://api.github.com/repos/django/django/git/trees{/sha}","statuses_url":"https://api.github.com/repos/django/django/statuses/{sha}","languages_url":"https://api.github.com/repos/django/django/languages","stargazers_url":"https://api.github.com/repos/django/django/stargazers","contributors_url":"https://api.github.com/repos/django/django/contributors","subscribers_url":"https://api.github.com/repos/django/django/subscribers","subscription_url":"https://api.github.com/repos/django/django/subscription","commits_url":"https://api.github.com/repos/django/django/commits{/sha}","git_commits_url":"https://api.github.com/repos/django/django/git/commits{/sha}","comments_url":"https://api.github.com/repos/django/django/comments{/number}","issue_comment_url":"https://api.github.com/repos/django/django/issues/comments{/number}","contents_url":"https://api.github.com/repos/django/django/contents/{+path}","compare_url":"https://api.github.com/repos/django/django/compare/{base}...{head}","merges_url":"https://api.github.com/repos/django/django/merges","archive_url":"https://api.github.com/repos/django/django/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/django/django/downloads","issues_url":"https://api.github.com/repos/django/django/issues{/number}","pulls_url":"https://api.github.com/repos/django/django/pulls{/number}","milestones_url":"https://api.github.com/repos/django/django/milestones{/number}","notifications_url":"https://api.github.com/repos/django/django/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/django/django/labels{/name}","releases_url":"https://api.github.com/repos/django/django/releases{/id}","created_at":"2012-04-28T02:47:18Z","updated_at":"2015-04-01T08:29:08Z","pushed_at":"2015-04-01T09:30:01Z","git_url":"git://github.com/django/django.git","ssh_url":"git@github.com:django/django.git","clone_url":"https://github.com/django/django.git","svn_url":"https://github.com/django/django","homepage":"https://www.djangoproject.com/","size":273769,"stargazers_count":13584,"watchers_count":13584,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":5346,"mirror_url":null,"open_issues_count":63,"forks":5346,"open_issues":63,"watchers":13584,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/django/django/pulls/4420"},"html":{"href":"https://github.com/django/django/pull/4420"},"issue":{"href":"https://api.github.com/repos/django/django/issues/4420"},"comments":{"href":"https://api.github.com/repos/django/django/issues/4420/comments"},"review_comments":{"href":"https://api.github.com/repos/django/django/pulls/4420/comments"},"review_comment":{"href":"https://api.github.com/repos/django/django/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/django/django/pulls/4420/commits"},"statuses":{"href":"https://api.github.com/repos/django/django/statuses/de8523763b46064753b0f467024ab528d6a7abbf"}}}}