Changeset 241:5da74419c873
- Timestamp:
- 17.02.2010 14:41:01 (2 years ago)
- Branch:
- default
- Location:
- djangobb/djangobb_forum
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
djangobb/djangobb_forum/models.py
r226 r241 200 200 super(Post, self).save(*args, **kwargs) 201 201 202 202 203 def delete(self, *args, **kwargs): 203 204 self_id = self.id … … 205 206 forum = self.topic.forum 206 207 topic = self.topic 208 profile = self.user.forum_profile 207 209 self.last_topic_post.clear() 208 210 self.last_forum_post.clear() … … 225 227 forum.topic_count = Topic.objects.filter(forum=forum).count() 226 228 forum.save() 229 profile.post_count = Post.objects.filter(user=self.user).count() 230 profile.save() 227 231 228 232 @models.permalink -
djangobb/djangobb_forum/views.py
r239 r241 675 675 676 676 post.delete() 677 profile = post.user.forum_profile678 profile.post_count = Post.objects.filter(user=post.user).count()679 profile.save()680 677 681 678 try:
Note: See TracChangeset
for help on using the changeset viewer.
