mirror of
https://github.com/retspen/webvirtcloud
synced 2025-07-31 12:41:08 +00:00
Think about new macbook
This commit is contained in:
parent
5ba82e29aa
commit
90d8dd5729
4 changed files with 69 additions and 3 deletions
|
|
@ -1,11 +1,12 @@
|
|||
from django.db import models
|
||||
from instances.models import Instance
|
||||
|
||||
from django.contrib.auth.models import User
|
||||
|
||||
class Logs(models.Model):
|
||||
user = models.ForeignKey(User)
|
||||
instance = models.ForeignKey(Instance)
|
||||
message = models.CharField(max_length=255)
|
||||
date = models.DateTimeField()
|
||||
date = models.DateTimeField(auto_now=True)
|
||||
|
||||
def __unicode__(self):
|
||||
return self.instance
|
||||
Loading…
Add table
Add a link
Reference in a new issue