|
22 | 22 | from email.utils import formatdate, make_msgid |
23 | 23 |
|
24 | 24 | from pgcommitfest.mailqueue.util import send_mail, send_simple_mail |
| 25 | +from pgcommitfest.userprofile.models import UserProfile |
25 | 26 | from pgcommitfest.userprofile.util import UserWrapper |
26 | 27 |
|
27 | 28 | from .ajax import _archivesAPI, doAttachThread, refresh_single_thread |
@@ -99,6 +100,7 @@ def me(request): |
99 | 100 | "openpatchids": [p["id"] for p in patch_list.patches if p["is_open"]], |
100 | 101 | "header_activity": "Activity log", |
101 | 102 | "header_activity_link": "/activity/", |
| 103 | + "userprofile": getattr(request.user, "uesrprofile", UserProfile()), |
102 | 104 | }, |
103 | 105 | ) |
104 | 106 |
|
@@ -540,6 +542,7 @@ def commitfest(request, cfid): |
540 | 542 | "openpatchids": [p["id"] for p in patch_list.patches if p["is_open"]], |
541 | 543 | "header_activity": "Activity log", |
542 | 544 | "header_activity_link": "activity/", |
| 545 | + "userprofile": getattr(request.user, "uesrprofile", UserProfile()), |
543 | 546 | }, |
544 | 547 | ) |
545 | 548 |
|
@@ -677,6 +680,7 @@ def patch(request, patchid): |
677 | 680 | "breadcrumbs": [ |
678 | 681 | {"title": cf.title, "href": "/%s/" % cf.pk}, |
679 | 682 | ], |
| 683 | + "userprofile": getattr(request.user, "uesrprofile", UserProfile()), |
680 | 684 | }, |
681 | 685 | ) |
682 | 686 |
|
|
0 commit comments