Skip to content

Commit 7bf5f07

Browse files
committed
chore: Improve example
1 parent 80649f1 commit 7bf5f07

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

example/notifications/types.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from generic_notifications.channels import EmailChannel
1+
from generic_notifications.channels import EmailChannel, WebsiteChannel
22
from generic_notifications.types import NotificationType, register
33

44

@@ -7,6 +7,7 @@ class CommentNotificationType(NotificationType):
77
key = "comment_notification"
88
name = "Comments"
99
description = "You received a comment"
10+
default_channels = [WebsiteChannel]
1011

1112

1213
@register

0 commit comments

Comments
 (0)