__str__
This commit is contained in:
parent
beba076302
commit
28f9a01d90
2 changed files with 4 additions and 4 deletions
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue