1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2024-12-25 15:45:23 +00:00
webvirtcloud/logs/models.py
2015-03-16 16:51:51 +02:00

12 lines
No EOL
366 B
Python

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(auto_now=True)
def __unicode__(self):
return self.instance