From cc9401f82cdccd99c2cbf761ab501c74bcb68571 Mon Sep 17 00:00:00 2001 From: Fabian Schaffert Date: Thu, 5 Jan 2017 22:26:06 +0100 Subject: [PATCH] WebsocketBinding.group_names() is a classmethod (#460) Child classes of WebsocketBinding must overwrite it as a classmethod, not as an instance method. --- docs/binding.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/binding.rst b/docs/binding.rst index e8ce3a8..6ee77d4 100644 --- a/docs/binding.rst +++ b/docs/binding.rst @@ -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):