1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2024-11-01 12:04:15 +00:00
webvirtcloud/logs/models.py

12 lines
366 B
Python
Raw Normal View History

2015-03-03 09:34:09 +00:00
from django.db import models
from instances.models import Instance
2015-03-16 14:51:51 +00:00
from django.contrib.auth.models import User
2015-03-03 09:34:09 +00:00
class Logs(models.Model):
2015-03-16 14:51:51 +00:00
user = models.ForeignKey(User)
2015-03-03 09:34:09 +00:00
instance = models.ForeignKey(Instance)
message = models.CharField(max_length=255)
2015-03-16 14:51:51 +00:00
date = models.DateTimeField(auto_now=True)
2015-03-03 09:34:09 +00:00
def __unicode__(self):
return self.instance