Zamiana importowanego moduĊ‚u z json na dostarczony z Django django.utils.simplejson.
[redakcja.git] / apps / explorer / views.py
index 90115aa..ac83c4e 100644 (file)
@@ -1,5 +1,6 @@
 from librarian import html
-import hg, urllib2, json
+import hg, urllib2
+from django.utils import simplejson as json
 
 from django.views.generic.simple import direct_to_template
 from django.conf import settings
@@ -48,8 +49,9 @@ def folder_images(request, folder):
     })
 
 def _add_references(message, issues):
-    # TODO
-    pass
+    for issue in issues:
+        message += " refs #%d " % issue.id
+    return message
 
 def _get_issues_for_file(path):
     if not path.endswith('.xml'):