mirror of
https://github.com/retspen/webvirtcloud
synced 2024-12-25 15:45:23 +00:00
12 lines
No EOL
366 B
Python
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 |