mirror of
https://github.com/retspen/webvirtcloud.git
synced 2026-05-26 07:08:05 +00:00
Add logs and block for templates
This commit is contained in:
11
logs/models.py
Normal file
11
logs/models.py
Normal file
@@ -0,0 +1,11 @@
|
||||
from django.db import models
|
||||
from instances.models import Instance
|
||||
|
||||
|
||||
class Logs(models.Model):
|
||||
instance = models.ForeignKey(Instance)
|
||||
message = models.CharField(max_length=255)
|
||||
date = models.DateTimeField()
|
||||
|
||||
def __unicode__(self):
|
||||
return self.instance
|
||||
Reference in New Issue
Block a user