""" This module holds the django admin models of the ``brainstormers`` app. """

from django.contrib import admin

from .models import (
    Brainstormer,
    BrainstormerActivity,
    BrainstormerProposition,
    BrainstormerPropositionGroup,
    BrainstormerTemplate
)


class BrainstormerActivityAdmin(admin.ModelAdmin):
    """ Admin for BrainstormerActivity. """

    readonly_fields = ('hash_preview', 'hash_image')


admin.site.register(Brainstormer)
admin.site.register(BrainstormerTemplate)
admin.site.register(BrainstormerProposition)
admin.site.register(BrainstormerPropositionGroup)
admin.site.register(BrainstormerActivity, BrainstormerActivityAdmin)
