mirror of
https://github.com/django/daphne.git
synced 2025-07-11 00:12:18 +03:00
WebsocketBinding.group_names() is a classmethod (#460)
Child classes of WebsocketBinding must overwrite it as a classmethod, not as an instance method.
This commit is contained in:
parent
ca4c9cd4e0
commit
cc9401f82c
|
@ -69,7 +69,8 @@ Start off like this::
|
||||||
stream = "intval"
|
stream = "intval"
|
||||||
fields = ["name", "value"]
|
fields = ["name", "value"]
|
||||||
|
|
||||||
def group_names(self, instance, action):
|
@classmethod
|
||||||
|
def group_names(cls, instance, action):
|
||||||
return ["intval-updates"]
|
return ["intval-updates"]
|
||||||
|
|
||||||
def has_permission(self, user, action, pk):
|
def has_permission(self, user, action, pk):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user