From 946c3091c07146ab16b46bf5e3f51ee539822582 Mon Sep 17 00:00:00 2001 From: reverend Date: Sat, 19 Dec 2020 15:31:04 +0100 Subject: [PATCH 1/2] Typo "fix" --- .../migrations/0002_remove_vouchers.py | 22 ------------------- .../migrations/0002_reomve_vouchers.py | 22 +++++++++++++++++++ 2 files changed, 22 insertions(+), 22 deletions(-) delete mode 100644 django_lostplaces/lostplaces/migrations/0002_remove_vouchers.py create mode 100644 django_lostplaces/lostplaces/migrations/0002_reomve_vouchers.py diff --git a/django_lostplaces/lostplaces/migrations/0002_remove_vouchers.py b/django_lostplaces/lostplaces/migrations/0002_remove_vouchers.py deleted file mode 100644 index d3727d9..0000000 --- a/django_lostplaces/lostplaces/migrations/0002_remove_vouchers.py +++ /dev/null @@ -1,22 +0,0 @@ - # Generated by Django 3.1.1 on 2020-10-04 19:37 - # Edited by reverend - - import datetime - from django.db import migrations, models - import django.utils.timezone - from django.utils.timezone import utc - - class Migration(migrations.Migration): - - dependencies = [ - ('lostplaces', '0001_initial'), - ] - - operations = [ - migrations.DeleteModel( - name='Voucher' - ), - migrations.DeleteModel( - name='Expireable' - ) - ] \ No newline at end of file diff --git a/django_lostplaces/lostplaces/migrations/0002_reomve_vouchers.py b/django_lostplaces/lostplaces/migrations/0002_reomve_vouchers.py new file mode 100644 index 0000000..d87ac47 --- /dev/null +++ b/django_lostplaces/lostplaces/migrations/0002_reomve_vouchers.py @@ -0,0 +1,22 @@ +# Generated by Django 3.1.1 on 2020-10-04 19:37 +# Edited by reverend + +import datetime +from django.db import migrations, models +import django.utils.timezone +from django.utils.timezone import utc + +class Migration(migrations.Migration): + + dependencies = [ + ('lostplaces', '0001_initial'), + ] + + operations = [ + migrations.DeleteModel( + name='Voucher' + ), + migrations.DeleteModel( + name='Expireable' + ) + ] \ No newline at end of file From 20dd880a11a008ba95cd5aedce59590445430831 Mon Sep 17 00:00:00 2001 From: reverend Date: Sat, 19 Dec 2020 15:31:13 +0100 Subject: [PATCH 2/2] Indention Error --- .../lostplaces/migrations/0003_voucher.py | 40 +++++++++---------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/django_lostplaces/lostplaces/migrations/0003_voucher.py b/django_lostplaces/lostplaces/migrations/0003_voucher.py index 40299a3..b4be5d8 100644 --- a/django_lostplaces/lostplaces/migrations/0003_voucher.py +++ b/django_lostplaces/lostplaces/migrations/0003_voucher.py @@ -1,25 +1,25 @@ - # Generated by Django 3.1.1 on 2020-10-04 19:52 +# Generated by Django 3.1.1 on 2020-10-04 19:52 - from django.db import migrations, models +from django.db import migrations, models - class Migration(migrations.Migration): +class Migration(migrations.Migration): - dependencies = [ - ('lostplaces', '0002_reomve_vouchers'), - ] + dependencies = [ + ('lostplaces', '0002_reomve_vouchers'), + ] - operations = [ - migrations.CreateModel( - name='Voucher', - fields=[ - ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('created_when', models.DateTimeField(auto_now_add=True)), - ('expires_when', models.DateTimeField()), - ('code', models.CharField(max_length=30, unique=True)), - ], - options={ - 'abstract': False, - }, - ), - ] \ No newline at end of file + operations = [ + migrations.CreateModel( + name='Voucher', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('created_when', models.DateTimeField(auto_now_add=True)), + ('expires_when', models.DateTimeField()), + ('code', models.CharField(max_length=30, unique=True)), + ], + options={ + 'abstract': False, + }, + ), + ] \ No newline at end of file