summaryrefslogtreecommitdiff
path: root/app/src
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2015-10-31 00:18:06 +0000
committerluxagraf <sng@luxagraf.net>2015-10-31 00:18:06 +0000
commita14099ad2f73df60ca371d15056ce1fce82669ad (patch)
treea37740613a4a192a1265e0180dc7a4f50b36e299 /app/src
parent16971c125e69ccd1df3cf441ca78af7b59f81826 (diff)
fixed some build bugs for src topic pages
Diffstat (limited to 'app/src')
-rw-r--r--app/src/build.py6
1 files changed, 3 insertions, 3 deletions
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)