from django.contrib import admin

from .models import FundooNote, Label


class NoteModelAdmin(admin.ModelAdmin):
    list_display = ['user', 'title', 'content', 'is_archive']
    list_display_links = ['user', 'title']
    list_filter = ['is_archive', 'content']

    class Meta:
        model = FundooNote


admin.site.register(Label)
admin.site.register(FundooNote, NoteModelAdmin)
