2020-11-05 09:34:31 +00:00
|
|
|
from django.db.models import CharField, DateTimeField, Model
|
2020-10-14 12:27:57 +00:00
|
|
|
from django.utils.translation import gettext_lazy as _
|
2015-03-03 09:34:09 +00:00
|
|
|
|
2020-03-16 13:59:45 +00:00
|
|
|
class Logs(Model):
|
2020-11-05 09:34:31 +00:00
|
|
|
user = CharField(_("user"), max_length=50)
|
|
|
|
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
|
|
|
|
2020-06-15 06:57:17 +00:00
|
|
|
def __str__(self):
|
2015-05-18 19:00:30 +00:00
|
|
|
return self.instance
|