1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2024-12-27 08:35:22 +00:00
webvirtcloud/logs/models.py

13 lines
456 B
Python
Raw Normal View History

from django.db.models import CharField, DateTimeField, Model
from django.utils.translation import gettext_lazy as _
2015-03-03 09:34:09 +00:00
class Logs(Model):
user = CharField(_("user"), max_length=50)
2021-05-31 08:39:09 +00:00
host = CharField(_("host"), max_length=50, default="-")
instance = CharField(_("instance"), max_length=50)
message = CharField(_("message"), max_length=255)
date = DateTimeField(_("date"), auto_now=True)
2015-03-03 09:34:09 +00:00
def __str__(self):
2015-05-18 19:00:30 +00:00
return self.instance