blob: aaa73f95c533c797d72d5b70157cafc693dde851 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
'''
Created on Nov 8, 2011
@author: leifj
'''
from actstream.models import ActionManager
from actstream.views import stream
from datetime import datetime
class NameActionManager(ActionManager):
@stream
def name_activities(self, name, time=None):
if time is None:
time = datetime.now()
return name.actor_actions.filter(timestamp__lte = time)
|