2020-03-16 13:59:45 +00:00
|
|
|
from django.db.models import Model, CharField, DateTimeField
|
2020-06-12 11:46:17 +00:00
|
|
|
from django.utils.translation import ugettext_lazy as _
|
2015-03-03 09:34:09 +00:00
|
|
|
|
2020-06-15 06:57:17 +00:00
|
|
|
|
2020-03-16 13:59:45 +00:00
|
|
|
class Logs(Model):
|
2020-06-12 11:46:17 +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
|