Changeset 390:a6ca87edb12f
- Timestamp:
- Feb 17, 2012 1:56:56 AM (15 months ago)
- Branch:
- default
- Location:
- djangobb_forum
- Files:
-
- 2 edited
-
models.py (modified) (1 diff)
-
templatetags/forum_extras.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
djangobb_forum/models.py
r388 r390 186 186 tracking.save() 187 187 #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 .id188 if self.last_post_id > tracking.topics.get(str(self.id), 0): 189 tracking.topics[str(self.id)] = self.last_post_id 190 190 tracking.save() 191 191 else: 192 192 #initialize topic tracking dict 193 tracking.topics = {self.id: self.last_post .id}193 tracking.topics = {self.id: self.last_post_id} 194 194 tracking.save() 195 195 -
djangobb_forum/templatetags/forum_extras.py
r383 r390 147 147 else: 148 148 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): 150 150 return True 151 151 else:
Note: See TracChangeset
for help on using the changeset viewer.
