
###  GenericForeignKey in admin ######
class PollAdmin(admin.ModelAdmin):
    fieldsets = (
        (None, {
            'fields': (
                'question'
                # ...
            )
        }),
        (_('page/article'), {
            'classes': ('grp-collapse grp-open',),
            'fields': ('content_type', 'object_id', )
        }),
    )
    autocomplete_lookup_fields = {
        'generic': [['content_type', 'object_id']],
    }

1d1873793a97998d27f713a6003f59a69d9f4348
<mask token>

class PollAdmin(admin.ModelAdmin):
    <mask token>
    <mask token>

class PollAdmin(admin.ModelAdmin):
    fieldsets = (None, {'fields': 'question'}), (_('page/article'), {
        'classes': ('grp-collapse grp-open',), 'fields': ('content_type',
        'object_id')})
    autocomplete_lookup_fields = {'generic': [['content_type', 'object_id']]}


###  GenericForeignKey in admin ######
class PollAdmin(admin.ModelAdmin):
    fieldsets = (
        (None, {
            'fields': (
                'question'
                # ...
            )
        }),
        (_('page/article'), {
            'classes': ('grp-collapse grp-open',),
            'fields': ('content_type', 'object_id', )
        }),
    )
    autocomplete_lookup_fields = {
        'generic': [['content_type', 'object_id']],
    }
