aboutsummaryrefslogtreecommitdiffstats
path: root/servo
diff options
context:
space:
mode:
Diffstat (limited to 'servo')
-rw-r--r--servo/views/device.py2
1 files changed, 1 insertions, 1 deletions
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)