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:
Fabian Schaffert 2017-01-05 22:26:06 +01:00 committed by Andrew Godwin
parent ca4c9cd4e0
commit cc9401f82c

View File

@ -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):