Merge lp://staging/~cjohnston/qa-dashboard/user-edit-profile into lp://staging/qa-dashboard
Proposed by
Chris Johnston
Status: | Merged |
---|---|
Approved by: | Chris Johnston |
Approved revision: | 646 |
Merged at revision: | 645 |
Proposed branch: | lp://staging/~cjohnston/qa-dashboard/user-edit-profile |
Merge into: | lp://staging/qa-dashboard |
Diff against target: |
369 lines (+285/-6) 8 files modified
common/forms.py (+24/-0) common/static/css/new-style.css (+84/-0) common/templates/form.html (+26/-0) common/templates/layout.html (+2/-1) common/tests/__init__.py (+1/-0) common/tests/test_profile.py (+116/-0) common/views.py (+31/-5) qa_dashboard/urls.py (+1/-0) |
To merge this branch: | bzr merge lp://staging/~cjohnston/qa-dashboard/user-edit-profile |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Andy Doan (community) | Approve | ||
PS Jenkins bot | continuous-integration | Approve | |
Chris Johnston | Needs Resubmitting | ||
Review via email: mp+192043@code.staging.launchpad.net |
Commit message
Adds the ability for a user to edit their profile
To post a comment you must log in.
1) This looks a little shady: objects. get(user= request. user) DoesNotExist: user=request. user)
216 + try:
217 + profile = UserProfile.
218 + except UserProfile.
219 + profile = UserProfile(
Why would request.user not exist?
2) This seems too verbose: launchpad. net/~{{ user.username }}">{{ user.username }}</a></li> launchpad. net/~{{ user.username }}">{{ user.username }}</a>< /strong> </li>
165 - <li>Logged in as: <a href="http://
166 + <li>Logged in as: <strong><a href="http://
167 + <li><a href="{% url 'edit_profile' %}">Edit profile</a>
Why not just have the logged-in link take you to your profile. ie:
<li>Logged in as: <a href="{% url 'edit_profile' %}">{{ user.username }}</a></li>