mirror of
https://github.com/retspen/webvirtcloud.git
synced 2026-05-26 07:08:05 +00:00
Replaced __unicode__ with __str__ for models
This commit is contained in:
@@ -1,11 +1,12 @@
|
||||
from django.db.models import Model, CharField, DateTimeField
|
||||
from django.utils.translation import ugettext_lazy as _
|
||||
|
||||
|
||||
class Logs(Model):
|
||||
user = CharField(_('user'), max_length=50)
|
||||
instance = CharField(_('instance'), max_length=50)
|
||||
message = CharField(_('message'), max_length=255)
|
||||
date = DateTimeField(_('date'), auto_now=True)
|
||||
|
||||
def __unicode__(self):
|
||||
def __str__(self):
|
||||
return self.instance
|
||||
|
||||
Reference in New Issue
Block a user