Show More
@@ -139,7 +139,7 b' class PostManager(models.Manager):' | |||||
139 | # must not be shown and be able for replying. |
|
139 | # must not be shown and be able for replying. | |
140 |
|
140 | |||
141 | threads = self.get_threads() |
|
141 | threads = self.get_threads() | |
142 |
thread_count = |
|
142 | thread_count = threads.count() | |
143 |
|
143 | |||
144 | if thread_count > settings.MAX_THREAD_COUNT: |
|
144 | if thread_count > settings.MAX_THREAD_COUNT: | |
145 | num_threads_to_delete = thread_count - settings.MAX_THREAD_COUNT |
|
145 | num_threads_to_delete = thread_count - settings.MAX_THREAD_COUNT |
General Comments 0
You need to be logged in to leave comments.
Login now