mirror of
https://github.com/retspen/webvirtcloud
synced 2025-07-31 12:41:08 +00:00
Fixed #7
This commit is contained in:
parent
5b336b2126
commit
1d22771519
6 changed files with 70 additions and 39 deletions
|
|
@ -1,12 +1,11 @@
|
|||
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)
|
||||
user = models.CharField(max_length=50)
|
||||
instance = models.CharField(max_length=50)
|
||||
message = models.CharField(max_length=255)
|
||||
date = models.DateTimeField(auto_now=True)
|
||||
|
||||
def __unicode__(self):
|
||||
return self.instance
|
||||
return self.instance
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue