2
0
Fork 0

Make new migrations, format code

This commit is contained in:
Luca 2022-04-22 02:07:31 +02:00
parent 2a20e6249b
commit 4bea956a38
3 changed files with 23 additions and 2 deletions

View File

@ -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
),
),
]

View File

@ -1,5 +1,6 @@
from celery import shared_task from celery import shared_task
@shared_task @shared_task
def test(): def test():
return 'Hello, Celery!' return "Hello, Celery!"

View File

@ -6,6 +6,6 @@ os.environ.setdefault("DJANGO_SETTINGS_MODULE", "shiftregister.settings")
app = Celery("shiftregister") app = Celery("shiftregister")
app.config_from_object("django.conf:settings", namespace='CELERY') app.config_from_object("django.conf:settings", namespace="CELERY")
app.autodiscover_tasks() app.autodiscover_tasks()