Add submission title
This commit is contained in:
parent
b523dcd2f6
commit
da551060da
3 changed files with 71 additions and 55 deletions
|
@ -18,6 +18,7 @@ from django.http import (
|
|||
from django.shortcuts import get_object_or_404
|
||||
from django.urls import reverse
|
||||
from django.utils import timezone
|
||||
from django.utils.html import format_html
|
||||
from django.utils.functional import cached_property
|
||||
from django.utils.safestring import mark_safe
|
||||
from django.utils.translation import gettext as _, gettext_lazy, ungettext
|
||||
|
@ -401,6 +402,15 @@ class OrganizationSubmissions(
|
|||
|
||||
return context
|
||||
|
||||
def get_content_title(self):
|
||||
return format_html(
|
||||
_('All submissions in <a href="{1}">{0}</a>'),
|
||||
self.organization,
|
||||
reverse(
|
||||
"organization_home", args=[self.organization.id, self.organization.slug]
|
||||
),
|
||||
)
|
||||
|
||||
|
||||
class OrganizationMembershipChange(
|
||||
LoginRequiredMixin, OrganizationMixin, SingleObjectMixin, View
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue