예제 #1
0
파일: logger.py 프로젝트: ORC-1/GoldHosp
def log(type, description, user):
    action = Action(
        type=type,
        timePerformed=datetime.now(),
        description=description,
        user=user,
    )
    action.save()
예제 #2
0
def log(type, description, account):
    action = Action(
        type=type,
        timePerformed=datetime.now(),
        description=description,
        account=account,
    )
    action.save()