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
295 B
Python
Raw Normal View History

from django.db.models import Model, CharField, DateTimeField
2015-05-18 19:00:30 +00:00
2015-03-03 09:34:09 +00:00
class Logs(Model):
user = CharField(max_length=50)
instance = CharField(max_length=50)
message = CharField(max_length=255)
date = DateTimeField(auto_now=True)
2015-03-03 09:34:09 +00:00
def __unicode__(self):
2015-05-18 19:00:30 +00:00
return self.instance