From dbc4aff747b6d8e2bc817f91878b4f02458c30ae Mon Sep 17 00:00:00 2001 From: Filipp Lepalaan Date: Thu, 13 May 2021 08:16:10 +0300 Subject: Switch to pymemcache --- servo/views/device.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'servo') diff --git a/servo/views/device.py b/servo/views/device.py index f02182a..0eda090 100644 --- a/servo/views/device.py +++ b/servo/views/device.py @@ -60,7 +60,7 @@ def prep_list_view(request, product_line=None, model=None): models = model_from_slug(product_line) if model is None: - model = models.keys()[0] + model = list(models.keys())[0] title = product_lines[product_line]['name'] else: title = models.get(model) -- cgit v1.2.3