Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Debian New Member Process
nm.debian.org
Commits
d2966b91
Commit
d2966b91
authored
Apr 21, 2022
by
Enrico Zini
Browse files
Link to person's page for validation
parent
03c7acbb
Changes
2
Show whitespace changes
Inline
Side-by-side
person/templates/person/certificate.html
View file @
d2966b91
...
...
@@ -192,7 +192,7 @@ p {
</div>
<div
id=
"cert-debian-url"
class=
"textblock"
>
{{
request.build_absolute
_ur
i
}}
{{
check
_ur
l
}}
</div>
<div
id=
"cert-signature"
class=
"textblock"
>
...
...
person/views.py
View file @
d2966b91
...
...
@@ -4,6 +4,7 @@ from django.utils.timezone import now
from
django.views.generic
import
TemplateView
from
django.views.generic.edit
import
UpdateView
,
FormView
from
django.core.exceptions
import
PermissionDenied
from
django.urls
import
reverse
from
backend.mixins
import
VisitPersonMixin
from
nm2.lib.forms
import
BootstrapAttrsMixin
import
backend.models
as
bmodels
...
...
@@ -259,6 +260,8 @@ class Certificate(VisitPersonMixin, TemplateView):
ctx
.
update
(
upload_rights
=
self
.
person
.
status
==
const
.
STATUS_DD_U
,
today
=
datetime
.
date
.
today
(),
check_url
=
self
.
request
.
build_absolute_uri
(
reverse
(
"person:show"
,
kwargs
=
{
"key"
:
self
.
person
.
lookup_key
})),
)
return
ctx
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment