Show More
@@ -194,16 +194,6 b' class Thread(models.Model):' | |||
|
194 | 194 | |
|
195 | 195 | return self.get_opening_post().pub_time |
|
196 | 196 | |
|
197 | def delete(self, using=None): | |
|
198 | """ | |
|
199 | Deletes thread with all replies. | |
|
200 | """ | |
|
201 | ||
|
202 | for reply in self.get_replies().all(): | |
|
203 | reply.delete() | |
|
204 | ||
|
205 | super(Thread, self).delete(using) | |
|
206 | ||
|
207 | 197 | def __str__(self): |
|
208 | 198 | return 'T#{}/{}'.format(self.id, self.get_opening_post_id()) |
|
209 | 199 |
General Comments 0
You need to be logged in to leave comments.
Login now