mirror of
https://github.com/retspen/webvirtcloud.git
synced 2026-06-08 21:34:36 +00:00
Fixed #7
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user