in your model create a function *def admin_photo(self):* * return '<img src="%s" height="150"/>' % self.photo.url* * admin_photo.allow_tags = True*
then just add it in the display list : *class MymodelAdmin(admin.ModelAdmin):* * list_display = (...,'photo') * *admin.site.register(Mymodel, MymodelAdmin)* Le mardi 9 avril 2013 11:33:43 UTC, frocco a écrit : > > Hello, > > I have a standard image field in my model, and want to see the images on > the admin list page. > > how do I modify admin.py to do this? > > Thanks > > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/django-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.

