Add template for profile view
This commit is contained in:
parent
1a53574f6f
commit
e897500814
2 changed files with 3 additions and 0 deletions
1
frontend/templates/frontend/my_profile.html
Normal file
1
frontend/templates/frontend/my_profile.html
Normal file
|
@ -0,0 +1 @@
|
|||
{% extends "frontend/form.html" %}
|
|
@ -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
|
Loading…
Reference in a new issue