Skip to content
Snippets Groups Projects
Commit c2187625 authored by HeJ's avatar HeJ
Browse files

Merge branch 'fix/627' into 'develop'

Small fixes

Closes #627 and #626

See merge request hub/hub!1064
parents e4e77413 896203df
No related branches found
No related tags found
No related merge requests found
......@@ -85,7 +85,7 @@ class StaticPageDiff(HtmlDiff):
try:
linenum = f'{linenum:d}'
change_id = f' id="{self._prefix[side]}{linenum}"'
except TypeError:
except ValueError:
# handle blank lines where linenum is '>' or ''
change_id = ''
......
......@@ -120,7 +120,7 @@ class RedeemTokenDetailView(ConferenceRequiredMixin, DetailView):
}
def get_queryset(self) -> QuerySet[BadgeToken]:
manageable = Assembly.objects.manageable_by_user(self.request.user, self.conf, False)
manageable = Assembly.objects.manageable_by_user(user=self.request.user, conference=self.conf, staff_can_manage=False)
qs = super().get_queryset()
qs = qs.filter(badge__issuing_assembly__in=manageable)
return qs
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment