Add shortcuts for transfers and credits in the activity entry page
This commit is contained in:
parent
6498a20b87
commit
9d584ae87a
8 changed files with 232 additions and 152 deletions
|
|
@ -155,4 +155,8 @@ class ActivityEntryView(LoginRequiredMixin, TemplateView):
|
|||
ctx["noteuser_ctype"] = ContentType.objects.get_for_model(NoteUser).pk
|
||||
ctx["notespecial_ctype"] = ContentType.objects.get_for_model(NoteSpecial).pk
|
||||
|
||||
ctx["activities_open"] = Activity.objects.filter(open=True).filter(
|
||||
PermissionBackend.filter_queryset(self.request.user, Activity, "view")).filter(
|
||||
PermissionBackend.filter_queryset(self.request.user, Activity, "change")).all()
|
||||
|
||||
return ctx
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue