mirror of
https://github.com/retspen/webvirtcloud
synced 2025-07-31 12:41:08 +00:00
Added log func and fix buttons on instance page
This commit is contained in:
parent
90d8dd5729
commit
1642100ef4
5 changed files with 247 additions and 159 deletions
|
@ -4,6 +4,15 @@ from django.core.urlresolvers import reverse
|
|||
from logs.models import Logs
|
||||
|
||||
|
||||
def addlogmsg(userid, instanceid, message):
|
||||
"""
|
||||
:param request:
|
||||
:return:
|
||||
"""
|
||||
add_log_msg = Logs(user_id=userid, instance_id=instanceid, message=message)
|
||||
add_log_msg.save()
|
||||
|
||||
|
||||
def showlogs(request):
|
||||
"""
|
||||
:param request:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue