This commit is contained in:
j 2017-04-15 12:28:11 +02:00
parent beba076302
commit 28f9a01d90
2 changed files with 4 additions and 4 deletions

View file

@ -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)

View file

@ -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)