From 70637b7afe2950a8fe7464daacec50ad3163b1d3 Mon Sep 17 00:00:00 2001 From: Andrew Godwin Date: Tue, 5 Apr 2016 22:29:00 -0700 Subject: [PATCH] Wrap line properly --- channels/database_layer.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/channels/database_layer.py b/channels/database_layer.py index d1ec122..37894a8 100644 --- a/channels/database_layer.py +++ b/channels/database_layer.py @@ -60,7 +60,9 @@ class DatabaseChannelLayer(object): while True: try: with transaction.atomic(): - message = self.channel_model.objects.select_for_update().filter(channel__in=channels).order_by("id").first() + message = self.channel_model.objects.select_for_update().filter( + channel__in=channels + ).order_by("id").first() if message: self.channel_model.objects.filter(pk=message.pk).delete() return message.channel, self.deserialize(message.content)