CCCPaste

Details and Delete Profile

class DetailProfileView(views.DetailView):
    queryset = Profile.objects.all()
    template_name = 'profiles/profile-details.html'

    def get_object(self, queryset=None):
        return get_profile()


class DeleteProfileView(views.DeleteView):
    queryset = Profile.objects.all()
    template_name = 'profiles/profile-delete.html'

    def get_object(self, queryset=None):
        return get_profile()