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