<reponame>oldevgeny/LegalTech-bot
from django.contrib import admin

from .models import Profile, Message
from .forms import ProfileForm

@admin.register(Profile)
class ProfileAdmin(admin.ModelAdmin):
    list_display = ('id', 'external_id', 'name')
    form = ProfileForm


@admin.register(Message)
class MessageAdmin(admin.ModelAdmin):
    list_display = ('id', 'profile', 'text', 'created_at')
    
    # def get_queryset(self, request):
    #     pass

from django.contrib import admin

from .models import Profile, Message
from .forms import ProfileForm

@admin.register(Profile)
class ProfileAdmin(admin.ModelAdmin):
    list_display = ('id', 'external_id', 'name')
    form = ProfileForm


@admin.register(Message)
class MessageAdmin(admin.ModelAdmin):
    list_display = ('id', 'profile', 'text', 'created_at')
    
    # def get_queryset(self, request):
    #     pass
# def get_queryset(self, request): #     pass