def log(type, description, user): action = Action( type=type, timePerformed=datetime.now(), description=description, user=user, ) action.save()
def log(type, description, account): action = Action( type=type, timePerformed=datetime.now(), description=description, account=account, ) action.save()
def getActivityAction(key): """ :param key: The action number :return: The string representation of the name for action """ return Action.to_name(key)