From 28f9a01d901bf4842acfdb5f756f339e8188847f Mon Sep 17 00:00:00 2001 From: j Date: Sat, 15 Apr 2017 12:28:11 +0200 Subject: [PATCH] __str__ --- pandora/archive/admin.py | 4 ++-- pandora/item/admin.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pandora/archive/admin.py b/pandora/archive/admin.py index a88eb9fac..4e02e6a35 100644 --- a/pandora/archive/admin.py +++ b/pandora/archive/admin.py @@ -9,8 +9,8 @@ from . import models class FileAdmin(admin.ModelAdmin): search_fields = ['path', 'oshash', 'video_codec'] - list_display = ['available', 'wanted', 'selected', '__unicode__', 'public_id'] - list_display_links = ('__unicode__', ) + list_display = ['available', 'wanted', 'selected', '__str__', 'public_id'] + list_display_links = ('__str__', ) def public_id(self, obj): return '%s' % (obj.item.public_id) diff --git a/pandora/item/admin.py b/pandora/item/admin.py index 8a4f2254e..4c7f73eb6 100644 --- a/pandora/item/admin.py +++ b/pandora/item/admin.py @@ -9,8 +9,8 @@ from . import models class ItemAdmin(admin.ModelAdmin): search_fields = ['public_id', 'data', 'external_data'] - list_display = ['rendered', 'public_id', '__unicode__'] - list_display_links = ('__unicode__', ) + list_display = ['rendered', 'public_id', '__str__'] + list_display_links = ('__str__', ) admin.site.register(models.Item, ItemAdmin)