From 4bea956a38b46d6d08e02ce1a2a7fbe64f432bea Mon Sep 17 00:00:00 2001 From: Luca Date: Fri, 22 Apr 2022 02:07:31 +0200 Subject: [PATCH] Make new migrations, format code --- .../app/migrations/0005_alter_helper_phone.py | 20 +++++++++++++++++++ shiftregister/app/tasks.py | 3 ++- shiftregister/celery.py | 2 +- 3 files changed, 23 insertions(+), 2 deletions(-) create mode 100644 shiftregister/app/migrations/0005_alter_helper_phone.py diff --git a/shiftregister/app/migrations/0005_alter_helper_phone.py b/shiftregister/app/migrations/0005_alter_helper_phone.py new file mode 100644 index 0000000..a9a46e9 --- /dev/null +++ b/shiftregister/app/migrations/0005_alter_helper_phone.py @@ -0,0 +1,20 @@ +# Generated by Django 4.0.4 on 2022-04-22 00:06 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ("app", "0004_shiftregistration_reminder_sent"), + ] + + operations = [ + migrations.AlterField( + model_name="helper", + name="phone", + field=models.CharField( + editable=False, max_length=200, primary_key=True, serialize=False + ), + ), + ] diff --git a/shiftregister/app/tasks.py b/shiftregister/app/tasks.py index b368d1d..2f3de06 100644 --- a/shiftregister/app/tasks.py +++ b/shiftregister/app/tasks.py @@ -1,5 +1,6 @@ from celery import shared_task + @shared_task def test(): - return 'Hello, Celery!' + return "Hello, Celery!" diff --git a/shiftregister/celery.py b/shiftregister/celery.py index 7e3f1d1..e343fd7 100644 --- a/shiftregister/celery.py +++ b/shiftregister/celery.py @@ -6,6 +6,6 @@ os.environ.setdefault("DJANGO_SETTINGS_MODULE", "shiftregister.settings") app = Celery("shiftregister") -app.config_from_object("django.conf:settings", namespace='CELERY') +app.config_from_object("django.conf:settings", namespace="CELERY") app.autodiscover_tasks()