Skip to content

Commit ee0cd2e

Browse files
committed
Change purchase slide with code.
Merge target function with grep test slide.
1 parent 131cb27 commit ee0cd2e

File tree

2 files changed

+12
-14
lines changed

2 files changed

+12
-14
lines changed

slides/keeping-software-soft.pug

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -73,14 +73,14 @@ html
7373
h2 Implicit API
7474
pre
7575
code.python.
76-
class Subscriptions(viewsets.ModelViewSet):
77-
queryset = Subscription.objects.all()
78-
serializer_class = SubscriptionSerializer
79-
permission_classes = (CanSubscribe,)
80-
filter_class = SubscriptionFilter
76+
class Purchases(viewsets.ModelViewSet):
77+
queryset = Purchase.objects.all()
78+
serializer_class = PurchaseSerializer
79+
permission_classes = (CanPurchase,)
80+
filter_class = PurchaseFilter
8181
pre
8282
code.python.
83-
router.register('/api/subscriptions/', Subscriptions)
83+
router.register('/api/purchases/', Purchases)
8484
ol
8585
li.fragment What exactly does this class do?
8686
li.fragment How to use it?
@@ -92,16 +92,14 @@ html
9292
code.python.
9393
from google_cloud_messaging import send_message
9494

95-
@signal
95+
@observer
9696
def send_sms(event):
97-
text = 'A new subscription was made'
97+
text = 'You purchase something!'
9898
on_commit(lambda: send_message(text))
99-
ol
100-
li.fragment В документации нет ни слова про вызов нашей функции
101-
li.fragment Не ясно как передать в неё нужные нам аргументы
102-
section
103-
h2 Grep test
104-
img(src=require("./pics/grep-test.png")).plain
99+
img(src=require("./pics/grep-test.png")).fragment.plain
100+
aside.notes
101+
p В документации нет ни слова про вызов нашей функции
102+
p Не ясно как передать в неё нужные нам аргументы
105103
section
106104
h2 Framework Lifecycle API
107105
ol

slides/pics/grep-test.png

-84.6 KB
Loading

0 commit comments

Comments
 (0)