Commit 8a7f288e by benjaoming

Merge pull request #278 from PolyLAN/fix_262

Fix #262 for attachements
parents 9100c424 1445ad58
...@@ -27,8 +27,8 @@ class AttachmentPreprocessor(markdown.preprocessors.Preprocessor): ...@@ -27,8 +27,8 @@ class AttachmentPreprocessor(markdown.preprocessors.Preprocessor):
m = ATTACHMENT_RE.match(line) m = ATTACHMENT_RE.match(line)
if m: if m:
attachment_id = m.group('id').strip() attachment_id = m.group('id').strip()
before = m.group('before') before = self.run([m.group('before')])[0]
after = m.group('after') after = self.run([m.group('after')])[0]
try: try:
attachment = models.Attachment.objects.get( attachment = models.Attachment.objects.get(
articles__current_revision__deleted=False, articles__current_revision__deleted=False,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment