Skip to content

Commit fe0dc82

Browse files
committed
Updates
1 parent a8c852f commit fe0dc82

File tree

33 files changed

+49
-30
lines changed

33 files changed

+49
-30
lines changed

Section 1 - Course Introduction/DJANGO_COURSE_2.xx/15-Django_Level_Two/first_project/first_app/migrations/0001_initial.py

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Generated by Django 2.0.5 on 2018-08-31 17:41
1+
# Generated by Django 3.0.3 on 2020-07-29 07:15
22

33
from django.db import migrations, models
44
import django.db.models.deletion
@@ -12,13 +12,6 @@ class Migration(migrations.Migration):
1212
]
1313

1414
operations = [
15-
migrations.CreateModel(
16-
name='AccessRecord',
17-
fields=[
18-
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
19-
('date', models.DateField()),
20-
],
21-
),
2215
migrations.CreateModel(
2316
name='Topic',
2417
fields=[
@@ -35,9 +28,12 @@ class Migration(migrations.Migration):
3528
('topic', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='first_app.Topic')),
3629
],
3730
),
38-
migrations.AddField(
39-
model_name='accessrecord',
40-
name='name',
41-
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='first_app.Webpage'),
31+
migrations.CreateModel(
32+
name='AccessRecord',
33+
fields=[
34+
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
35+
('date', models.DateField()),
36+
('name', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='first_app.Webpage')),
37+
],
4238
),
4339
]

Section 1 - Course Introduction/DJANGO_COURSE_2.xx/15-Django_Level_Two/first_project/first_app/migrations/__init__.py

Whitespace-only changes.

0 commit comments

Comments
 (0)