mirror of
https://github.com/django/django.git
synced 2025-06-05 03:29:12 +00:00
[1.11.x] Removed unexpected initial attribute in data migration examples.
Inadvertently added in db97a8849519a3933bf4abd2184efd68ebc21965. Backport of 899c42cc8e1820948f4091f815ce7890057c4a81 from master
This commit is contained in:
parent
992c929d22
commit
4b00657f24
1
AUTHORS
1
AUTHORS
@ -718,6 +718,7 @@ answer newbie questions, and generally made Django that much better:
|
|||||||
Stanislaus Madueke
|
Stanislaus Madueke
|
||||||
starrynight <cmorgh@gmail.com>
|
starrynight <cmorgh@gmail.com>
|
||||||
Stefane Fermgier <sf@fermigier.com>
|
Stefane Fermgier <sf@fermigier.com>
|
||||||
|
Stefano Rivera <stefano@rivera.za.net>
|
||||||
Stéphane Raimbault <stephane.raimbault@gmail.com>
|
Stéphane Raimbault <stephane.raimbault@gmail.com>
|
||||||
Stephan Jaekel <steph@rdev.info>
|
Stephan Jaekel <steph@rdev.info>
|
||||||
Stephen Burrows <stephen.r.burrows@gmail.com>
|
Stephen Burrows <stephen.r.burrows@gmail.com>
|
||||||
|
@ -466,7 +466,6 @@ Then, open up the file; it should look something like this::
|
|||||||
from django.db import migrations
|
from django.db import migrations
|
||||||
|
|
||||||
class Migration(migrations.Migration):
|
class Migration(migrations.Migration):
|
||||||
initial = True
|
|
||||||
|
|
||||||
dependencies = [
|
dependencies = [
|
||||||
('yourappname', '0001_initial'),
|
('yourappname', '0001_initial'),
|
||||||
@ -504,7 +503,6 @@ need to do is use the historical model and iterate over the rows::
|
|||||||
person.save()
|
person.save()
|
||||||
|
|
||||||
class Migration(migrations.Migration):
|
class Migration(migrations.Migration):
|
||||||
initial = True
|
|
||||||
|
|
||||||
dependencies = [
|
dependencies = [
|
||||||
('yourappname', '0001_initial'),
|
('yourappname', '0001_initial'),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user