From 57d57a9da6eaa250ed9c49c3a569b78b69fdf9bd Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Wed, 16 Jun 2010 11:46:27 +0200 Subject: [PATCH] fixes --- apps/catalogue/tests/tags.py | 2 +- wolnelektury/manage.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 = [ -- 2.20.1