From a14099ad2f73df60ca371d15056ce1fce82669ad Mon Sep 17 00:00:00 2001 From: luxagraf Date: Sat, 31 Oct 2015 00:18:06 +0000 Subject: fixed some build bugs for src topic pages --- app/src/build.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'app/src') diff --git a/app/src/build.py b/app/src/build.py index 3abd8ff..ac77d0b 100644 --- a/app/src/build.py +++ b/app/src/build.py @@ -33,12 +33,12 @@ class BuildSrc(Build): def build_topic_archive(self): for topic in Topic.objects.all(): - path = 'src/%s' % topic.slug + path = 'src/topic/' c = Context({ - 'object_list': Entry.objects.filter(topic__slug=topic.slug), + 'object_list': Entry.objects.filter(topics__slug=topic.slug), 'topic': topic, 'MEDIA_URL': settings.BAKED_MEDIA_URL, 'IMAGES_URL': settings.BAKED_IMAGES_URL }) t = render_to_string('archives/src_home.html', c).encode('utf-8') - self.write_file(path, t) + self.write_file(path, t, 'html', topic.slug) -- cgit v1.2.3