diff options
Diffstat (limited to 'accounts/views.py')
-rw-r--r-- | accounts/views.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/accounts/views.py b/accounts/views.py index aafcfb6..c869085 100644 --- a/accounts/views.py +++ b/accounts/views.py | |||
@@ -2,12 +2,15 @@ from django.shortcuts import render, redirect | |||
2 | from django.contrib.auth import authenticate, login | 2 | from django.contrib.auth import authenticate, login |
3 | from django.contrib.auth.decorators import login_required | 3 | from django.contrib.auth.decorators import login_required |
4 | 4 | ||
5 | from proposals.models import Proposal | ||
5 | from accounts.forms import UserCreationForm | 6 | from accounts.forms import UserCreationForm |
6 | 7 | ||
7 | 8 | ||
8 | @login_required | 9 | @login_required |
9 | def profile(request): | 10 | def profile(request): |
10 | return render(request, "accounts/profile.html") | 11 | return render(request, "accounts/profile.html", { |
12 | 'proposals': Proposal.objects.for_user(request.user), | ||
13 | }) | ||
11 | 14 | ||
12 | 15 | ||
13 | def create_account(request): | 16 | def create_account(request): |