##// END OF EJS Templates
Removed thread tag updater
neko259 -
r907:39d20e9b default
parent child Browse files
Show More
@@ -180,12 +180,4 b' class Thread(models.Model):'
180 180 super(Thread, self).delete(using)
181 181
182 182 def __str__(self):
183 return 'T#{}/{}'.format(self.id, self.get_opening_post_id())
184
185 def save(self, force_insert=False, force_update=False, using=None,
186 update_fields=None):
187 super().save(force_insert, force_update, using, update_fields)
188
189 if not update_fields or 'tags' in update_fields:
190 for tag in self.tags.all():
191 tag.threads.add(self) No newline at end of file
183 return 'T#{}/{}'.format(self.id, self.get_opening_post_id()) No newline at end of file
General Comments 0
You need to be logged in to leave comments. Login now