<filename>vkontakte_groups/admin.py
# -*- coding: utf-8 -*-
from django.contrib import admin
from vkontakte_api.admin import VkontakteModelAdmin
from models import Group


class GroupAdmin(VkontakteModelAdmin):
    def image_preview(self, obj):
        return u'<a href="%s"><img src="%s" height="30" /></a>' % (obj.photo_big, obj.photo)

    image_preview.short_description = u'Картинка'
    image_preview.allow_tags = True

    search_fields = ('name',)
    list_display = ('image_preview', 'name', 'screen_name', 'type')
    list_display_links = ('name', 'screen_name')
    list_filter = ('type', 'is_closed', 'is_admin')

    exclude = ('members',)


admin.site.register(Group, GroupAdmin)

<filename>vkontakte_groups/admin.py
# -*- coding: utf-8 -*-
from django.contrib import admin
from vkontakte_api.admin import VkontakteModelAdmin
from models import Group


class GroupAdmin(VkontakteModelAdmin):
    def image_preview(self, obj):
        return u'<a href="%s"><img src="%s" height="30" /></a>' % (obj.photo_big, obj.photo)

    image_preview.short_description = u'Картинка'
    image_preview.allow_tags = True

    search_fields = ('name',)
    list_display = ('image_preview', 'name', 'screen_name', 'type')
    list_display_links = ('name', 'screen_name')
    list_filter = ('type', 'is_closed', 'is_admin')

    exclude = ('members',)


admin.site.register(Group, GroupAdmin)

# -*- coding: utf-8 -*-