from django.shortcuts import render
from django.views.generic import TemplateView, DetailView, ListView
from .models import Profile


# Create your views here.


class HomeView(TemplateView):
    template_name = 'chatRoom/Home.html'


class ProfileView(ListView):
    model = Profile
    template_name = 'chatRoom/Profile.html'

    def get_object(self, **kwargs):
        ID = self.kwargs.get('pk')
        return Profile.objects.get(pk=ID)

from django.shortcuts import render
from django.views.generic import TemplateView, DetailView, ListView
from .models import Profile


# Create your views here.


class HomeView(TemplateView):
    template_name = 'chatRoom/Home.html'


class ProfileView(ListView):
    model = Profile
    template_name = 'chatRoom/Profile.html'

    def get_object(self, **kwargs):
        ID = self.kwargs.get('pk')
        return Profile.objects.get(pk=ID)

# Create your views here.