Changeset 390:a6ca87edb12f


Ignore:
Timestamp:
Feb 17, 2012 1:56:56 AM (15 months ago)
Author:
Igor Yanchenko <yanchenko.igor@…>
Branch:
default
Message:

last_post.id changed to last_post_id

Location:
djangobb_forum
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • djangobb_forum/models.py

    r388 r390  
    186186                tracking.save() 
    187187            #update topics if exist new post or does't exist in dict 
    188             if self.last_post.id > tracking.topics.get(str(self.id), 0): 
    189                 tracking.topics[str(self.id)] = self.last_post.id 
     188            if self.last_post_id > tracking.topics.get(str(self.id), 0): 
     189                tracking.topics[str(self.id)] = self.last_post_id 
    190190                tracking.save() 
    191191        else: 
    192192            #initialize topic tracking dict 
    193             tracking.topics = {self.id: self.last_post.id} 
     193            tracking.topics = {self.id: self.last_post_id} 
    194194            tracking.save() 
    195195 
  • djangobb_forum/templatetags/forum_extras.py

    r383 r390  
    147147    else: 
    148148        if isinstance(user.posttracking.topics, dict): 
    149             if topic.last_post.id > user.posttracking.topics.get(str(topic.id), 0): 
     149            if topic.last_post_id > user.posttracking.topics.get(str(topic.id), 0): 
    150150                return True 
    151151            else: 
Note: See TracChangeset for help on using the changeset viewer.