'Returns a group based on the verb, object and day'

def get_group(self, activity):

    verb = activity.verb.id
    object_id = activity.object_id
    date = activity.time.date()
    group = ('%s-%s-%s' % (verb, object_id, date))
    return group
