diff --git a/channels/decorators.py b/channels/decorators.py index 63ba59d..5a94850 100644 --- a/channels/decorators.py +++ b/channels/decorators.py @@ -5,7 +5,7 @@ from django.utils import six from channels import channel_backends, DEFAULT_CHANNEL_BACKEND -def consumer(self, *channels, alias=DEFAULT_CHANNEL_BACKEND): +def consumer(self, alias=DEFAULT_CHANNEL_BACKEND, *channels): """ Decorator that registers a function as a consumer. """