Make new migrations, format code
This commit is contained in:
parent
2a20e6249b
commit
4bea956a38
|
@ -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
|
||||||
|
),
|
||||||
|
),
|
||||||
|
]
|
|
@ -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!"
|
||||||
|
|
|
@ -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()
|
||||||
|
|
Loading…
Reference in New Issue