From a60063f009e54f613b278b8ae1fdb1ab450e6de6 Mon Sep 17 00:00:00 2001 From: Skia Date: Tue, 29 Nov 2016 11:49:41 +0100 Subject: [PATCH] Oops, syntax error + styling footer --- core/static/core/style.css | 2 +- sas/models.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/static/core/style.css b/core/static/core/style.css index 098a6072..2a67cf1a 100644 --- a/core/static/core/style.css +++ b/core/static/core/style.css @@ -355,7 +355,7 @@ footer div{ } footer a{ - margin-left: 20px; + margin: 1px 20px; } /*---------------------------------FORMS-------------------------------*/ diff --git a/sas/models.py b/sas/models.py index a9f9cd22..cdda775e 100644 --- a/sas/models.py +++ b/sas/models.py @@ -17,7 +17,7 @@ class Picture(SithFile): @property def is_vertical(self): - with open(settings.MEDIA_ROOT + self.file.name).encode('utf-8'), 'rb') as f: + with open((settings.MEDIA_ROOT + self.file.name).encode('utf-8'), 'rb') as f: im = Image.open(BytesIO(f.read())) (w, h) = im.size return (w / h) < 1