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()