from django.contrib import admin

from adhocracy4.phases import admin as phase_admin

from . import models


class ModuleAdmin(admin.ModelAdmin):
    inlines = [
        phase_admin.PhaseInline
    ]
    list_filter = ('project', 'project__organisation')


admin.site.register(models.Module, ModuleAdmin)

from django.contrib import admin

from adhocracy4.phases import admin as phase_admin

from . import models


class ItemAdmin(admin.ModelAdmin):
    list_filter = ('module__project', 'module')


class ModuleAdmin(admin.ModelAdmin):
    inlines = [
        phase_admin.PhaseInline
    ]
    list_filter = ('project', 'project__organisation')


admin.site.register(models.Module, ModuleAdmin)

add item admin