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()