From e897500814a09c238787385271902a6637a6a1e6 Mon Sep 17 00:00:00 2001 From: Kumi Date: Wed, 10 Aug 2022 07:18:15 +0000 Subject: [PATCH] Add template for profile view --- frontend/templates/frontend/my_profile.html | 1 + frontend/views/profile.py | 2 ++ 2 files changed, 3 insertions(+) create mode 100644 frontend/templates/frontend/my_profile.html diff --git a/frontend/templates/frontend/my_profile.html b/frontend/templates/frontend/my_profile.html new file mode 100644 index 0000000..6b27aaa --- /dev/null +++ b/frontend/templates/frontend/my_profile.html @@ -0,0 +1 @@ +{% extends "frontend/form.html" %} \ No newline at end of file diff --git a/frontend/views/profile.py b/frontend/views/profile.py index 6de13fe..7b9e12b 100644 --- a/frontend/views/profile.py +++ b/frontend/views/profile.py @@ -19,5 +19,7 @@ class ProfileUpdateView(UpdateView): class OwnProfileView(ProfileUpdateView): + template_name = "frontend/my_profile.html" + def get_object(self, queryset=None): return self.request.user.profile \ No newline at end of file