From: Radek Czajka Date: Wed, 16 Jun 2010 09:46:27 +0000 (+0200) Subject: fixes X-Git-Url: https://git.mdrn.pl/wolnelektury.git/commitdiff_plain/57d57a9da6eaa250ed9c49c3a569b78b69fdf9bd?ds=sidebyside fixes --- diff --git a/apps/catalogue/tests/tags.py b/apps/catalogue/tests/tags.py index f9102a7c8..262821460 100644 --- a/apps/catalogue/tests/tags.py +++ b/apps/catalogue/tests/tags.py @@ -244,7 +244,7 @@ class TestIdenticalTag(WLTestCase): cats = self.client.get('/katalog/lektura/tag/').context['categories'] for category in 'author', 'kind', 'genre', 'epoch', 'theme': - self.assertTrue('tag' in [tag.name for tag in cats[category]], + self.assertTrue('tag' in [tag.slug for tag in cats[category]], 'missing related tag for %s' % category) def test_qualified_url(self): diff --git a/wolnelektury/manage.py b/wolnelektury/manage.py index 93b280527..309a56e04 100755 --- a/wolnelektury/manage.py +++ b/wolnelektury/manage.py @@ -2,7 +2,7 @@ import os.path import sys -ROOT = os.path.abspath(os.path.dirname(os.path.dirname(__file__))) +ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) # Add apps and lib directories to PYTHONPATH sys.path = [