from django.contrib import admin
from .cms_appconfig import PollsApphookConfig
# from .models import PollsApphookModel
from aldryn_apphooks_config.admin import ModelAppHookConfig, BaseAppHookConfig


'''
class PollsApphookAdmin(ModelAppHookConfig, admin.ModelAdmin):
    list_display = (
        'poll',
        'app_config',
    )
admin.site.register(PollsApphookModel, PollsApphookAdmin)
'''


class PollsApphookConfigAdmin(BaseAppHookConfig, admin.ModelAdmin):
    def get_config_fields(self):
        return (
            'poll',
        )
admin.site.register(PollsApphookConfig, PollsApphookConfigAdmin)

0ec4f79cd172919ce95d3256be6a9bedd49af4d9
<mask token>


class PollsApphookConfigAdmin(BaseAppHookConfig, admin.ModelAdmin):
    <mask token>


<mask token>

<mask token>


class PollsApphookConfigAdmin(BaseAppHookConfig, admin.ModelAdmin):

    def get_config_fields(self):
        return 'poll',


<mask token>

<mask token>


class PollsApphookConfigAdmin(BaseAppHookConfig, admin.ModelAdmin):

    def get_config_fields(self):
        return 'poll',


admin.site.register(PollsApphookConfig, PollsApphookConfigAdmin)

from django.contrib import admin
from .cms_appconfig import PollsApphookConfig
from aldryn_apphooks_config.admin import ModelAppHookConfig, BaseAppHookConfig
<mask token>


class PollsApphookConfigAdmin(BaseAppHookConfig, admin.ModelAdmin):

    def get_config_fields(self):
        return 'poll',


admin.site.register(PollsApphookConfig, PollsApphookConfigAdmin)

from django.contrib import admin
from .cms_appconfig import PollsApphookConfig
# from .models import PollsApphookModel
from aldryn_apphooks_config.admin import ModelAppHookConfig, BaseAppHookConfig


'''
class PollsApphookAdmin(ModelAppHookConfig, admin.ModelAdmin):
    list_display = (
        'poll',
        'app_config',
    )
admin.site.register(PollsApphookModel, PollsApphookAdmin)
'''


class PollsApphookConfigAdmin(BaseAppHookConfig, admin.ModelAdmin):
    def get_config_fields(self):
        return (
            'poll',
        )
admin.site.register(PollsApphookConfig, PollsApphookConfigAdmin)
