Show More
@@ -79,7 +79,7 b' class PostManager(models.Manager):' | |||||
79 | if file: |
|
79 | if file: | |
80 | self._add_file_to_post(file, post) |
|
80 | self._add_file_to_post(file, post) | |
81 | for image in images: |
|
81 | for image in images: | |
82 |
post. |
|
82 | post.attachments.add(image) | |
83 |
|
83 | |||
84 | post.connect_threads(opening_posts) |
|
84 | post.connect_threads(opening_posts) | |
85 | post.set_global_id() |
|
85 | post.set_global_id() | |
@@ -168,7 +168,6 b' class PostManager(models.Manager):' | |||||
168 |
|
168 | |||
169 | post.clear_cache() |
|
169 | post.clear_cache() | |
170 |
|
170 | |||
171 | post.images.clear() |
|
|||
172 | post.attachments.clear() |
|
171 | post.attachments.clear() | |
173 | for file in files: |
|
172 | for file in files: | |
174 | self._add_file_to_post(file, post) |
|
173 | self._add_file_to_post(file, post) |
General Comments 0
You need to be logged in to leave comments.
Login now