mirror of
https://github.com/django/daphne.git
synced 2025-04-21 01:02:06 +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"
|
||||
fields = ["name", "value"]
|
||||
|
||||
def group_names(self, instance, action):
|
||||
@classmethod
|
||||
def group_names(cls, instance, action):
|
||||
return ["intval-updates"]
|
||||
|
||||
def has_permission(self, user, action, pk):
|
||||
|
|
Loading…
Reference in New Issue
Block a user