diff options
author | Filipp Lepalaan <filipp@mac.com> | 2021-05-13 08:16:10 +0300 |
---|---|---|
committer | Filipp Lepalaan <filipp@mac.com> | 2021-05-13 08:16:10 +0300 |
commit | dbc4aff747b6d8e2bc817f91878b4f02458c30ae (patch) | |
tree | f8a3be19098fc9bdc617171a11b2528a1cf2ecd0 | |
parent | 99186146e87c4159513bed25a3062f1cf73e212d (diff) | |
download | Servo-dbc4aff747b6d8e2bc817f91878b4f02458c30ae.tar.gz Servo-dbc4aff747b6d8e2bc817f91878b4f02458c30ae.tar.bz2 Servo-dbc4aff747b6d8e2bc817f91878b4f02458c30ae.zip |
Switch to pymemcache
-rwxr-xr-x | install.py | 2 | ||||
-rw-r--r-- | servo/views/device.py | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -14,7 +14,7 @@ assert not os.path.exists('local_settings.py'), 'Local_settings already defined' default_hostname = socket.gethostname() os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'settings') -tpl_url = 'https://gist.githubusercontent.com/filipp/cba2ffecd0d5790f7245/raw/9d5b140ed23c1bbdbadbd5c674d3a00c00d80047/local_settings.py' +tpl_url = 'https://gist.githubusercontent.com/filipp/cba2ffecd0d5790f7245/raw/e6b4b09a8779a188520604f654bfbd907c5d1f4c/local_settings.py' fh = open('local_settings.py', 'w') 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) |