in my model i have an image field as such:

       Thumbnail= models.ImageField(upload_to="images/partners/
thumbs/", blank=False)


I want the thumbnail to show in my admin list.  My admin class looks
like this below:



class PartnerAdmin(admin.ModelAdmin):
        list_display = ('xx','AdminTag',)
        search_fields = ['AdminTag','Title','Description']

        def xx(self):
                return '<img src="/static/sitename/%s" width="65"/>' %
(self.Thumbnail)
                xx.allow_tags=True

The result:

Caught TypeError while rendering: xx() takes exactly 1 argument (2
given)



What am i doing wrong here?

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to