Rafał Pitoń 11 years ago
parent
commit
3a98a544e1
1 changed files with 2 additions and 2 deletions
  1. 2 2
      misago/apps/threadtype/posting/base.py

+ 2 - 2
misago/apps/threadtype/posting/base.py

@@ -98,8 +98,8 @@ class PostingBaseView(ViewBase):
                                            )
 
     def make_attachments_token(self):
-        if self.post_id:
-            self.attachments_token = 'attachments_%s' % self.post_id
+        if self.post:
+            self.attachments_token = 'attachments_%s' % self.post.pk
         else:
             forum_pk = self.forum.pk
             try: