mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-11-29 11:44:28 +01:00
Python3 compatibility: add __str__ functions in addition to __unicode__ functions
This commit is contained in:
@@ -420,6 +420,11 @@ class ObjectAccess(models.Model):
|
||||
self.user, self.content_object, self.content_type
|
||||
)
|
||||
|
||||
def __str__(self):
|
||||
return "%s => %s (%s)" % (
|
||||
self.user, self.content_object, self.content_type
|
||||
)
|
||||
|
||||
|
||||
class Log(models.Model):
|
||||
"""Simple log in database."""
|
||||
|
||||
Reference in New Issue
Block a user