from django.contrib import admin

from rooms.models import Room, RoomEntry, ModuleRoomSlug


@admin.register(Room)
class RoomAdmin(admin.ModelAdmin):
    list_display = ('id', 'slug', 'title', 'school_class', 'appearance')
    list_filter = ('school_class', 'appearance')


@admin.register(RoomEntry)
class RoomEntryAdmin(admin.ModelAdmin):
    list_display = ('id', 'slug', 'title', 'room', 'author')
    list_filter = ('room', 'author')


@admin.register(ModuleRoomSlug)
class AdminGeneratedRoomSlugAdmin(admin.ModelAdmin):
    list_display = ('id', 'slug', 'title')
    list_filter = ('slug', 'title')
