File tree 3 files changed +8
-7
lines changed
3 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -31,11 +31,11 @@ like:
31
31
32
32
ship = tasks.UpdateView(fields = [" tracking_code" ])
33
33
34
- def has_email (self , task ):
34
+ def has_email (self ):
35
35
if self .email:
36
36
return [self .send_tracking_code]
37
37
38
- def send_tracking_code (self , task ):
38
+ def send_tracking_code (self ):
39
39
send_mail(
40
40
subject = " Your tracking code" ,
41
41
message = self .tracking_code,
Original file line number Diff line number Diff line change @@ -73,7 +73,8 @@ def linkcode_resolve(domain, info):
73
73
"https://docs.djangoproject.com/en/stable/" ,
74
74
"https://docs.djangoproject.com/en/stable/_objects/" ,
75
75
),
76
- "celery" : ("https://celery.readthedocs.io/en/stable/" , None ),
76
+ "dramatiq" : ("https://dramatiq.io/" , None ),
77
+ "celery" : ("https://docs.celeryproject.org/en/stable/" , None ),
77
78
"graphviz" : ("https://graphviz.readthedocs.io/en/stable/" , None ),
78
79
}
79
80
Original file line number Diff line number Diff line change @@ -25,12 +25,12 @@ may look like:
25
25
checkout [color=black fontcolor=black style="filled, rounded"]
26
26
"has email" [color=black fontcolor=black style=filled]
27
27
ship [color=black fontcolor=black style="filled, rounded"]
28
- end [color=black fontcolor=black style=filled]
28
+ end [color=black fontcolor=black style=filled peripheries=2 ]
29
29
"send tracking code" [color=black fontcolor=black style=filled]
30
30
checkout -> ship
31
31
ship -> "has email"
32
32
"has email" -> "send tracking code"
33
- "has email" -> end
33
+ "has email" -> end [color="#888888"]
34
34
"send tracking code" -> end
35
35
}
36
36
@@ -55,15 +55,15 @@ may look like:
55
55
if self .email:
56
56
return [self .send_tracking_code]
57
57
58
- def send_tracking_code (self , task ):
58
+ def send_tracking_code (self ):
59
59
send_mail(
60
60
subject = " Your tracking code" ,
61
61
message = self .tracking_code,
62
62
from_email = None ,
63
63
recipient_list = [self .email],
64
64
)
65
65
66
- def end (self , task ):
66
+ def end (self ):
67
67
pass
68
68
69
69
edges = [
You can’t perform that action at this time.
0 commit comments