1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2025-07-31 12:41:08 +00:00
This commit is contained in:
Retspen 2015-05-18 22:00:30 +03:00
parent 5b336b2126
commit 1d22771519
6 changed files with 70 additions and 39 deletions

View file

@ -4,12 +4,12 @@ from django.core.urlresolvers import reverse
from logs.models import Logs
def addlogmsg(userid, instanceid, message):
def addlogmsg(user, instance, message):
"""
:param request:
:return:
"""
add_log_msg = Logs(user_id=userid, instance_id=instanceid, message=message)
add_log_msg = Logs(user=user, instance=instance, message=message)
add_log_msg.save()