Add template for profile view

This commit is contained in:
Kumi 2022-08-10 07:18:15 +00:00
parent 1a53574f6f
commit e897500814
Signed by: kumi
GPG key ID: ECBCC9082395383F
2 changed files with 3 additions and 0 deletions

View file

@ -0,0 +1 @@
{% extends "frontend/form.html" %}

View file

@ -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