Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
nk20
Manage
Activity
Members
Labels
Plan
Issues
31
Issue boards
Milestones
Wiki
Code
Merge requests
7
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
BDE
nk20
Commits
60b579f7
Commit
60b579f7
authored
4 years ago
by
ynerant
Browse files
Options
Downloads
Patches
Plain Diff
Update the generation of the PDF files for WEI registrations (now borderless and smaller)
parent
d4ddbc35
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!78
WEI
Pipeline
#8179
passed with stages
in 5 minutes and 22 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
apps/scripts
+1
-1
1 addition, 1 deletion
apps/scripts
apps/wei/views.py
+3
-3
3 additions, 3 deletions
apps/wei/views.py
with
4 additions
and
4 deletions
scripts
@
8b903808
Compare
8f2976b4
...
8b903808
Subproject commit 8
f2976b43293b0163f5aad0fcdb5c35eb38b70dc
Subproject commit 8
b90380866b2ce4ed55bbc9a181463bcd1282ccd
This diff is collapsed.
Click to expand it.
apps/wei/views.py
+
3
−
3
View file @
60b579f7
...
...
@@ -86,7 +86,7 @@ class WEIDetailView(ProtectQuerysetMixin, LoginRequiredMixin, DetailView):
club
=
context
[
"
club
"
]
club_transactions
=
Transaction
.
objects
.
all
().
filter
(
Q
(
source
=
club
.
note
)
|
Q
(
destination
=
club
.
note
))
\
.
filter
(
PermissionBackend
.
filter_queryset
(
self
.
request
.
user
,
Transaction
,
"
view
"
))
\
.
filter
(
PermissionBackend
.
filter_queryset
(
self
.
request
.
user
,
Transaction
,
"
view
"
))
\
.
order_by
(
'
-created_at
'
,
'
-id
'
)
history_table
=
HistoryTable
(
club_transactions
,
prefix
=
"
history-
"
)
history_table
.
paginate
(
per_page
=
20
,
page
=
self
.
request
.
GET
.
get
(
'
history-page
'
,
1
))
...
...
@@ -116,7 +116,7 @@ class WEIDetailView(ProtectQuerysetMixin, LoginRequiredMixin, DetailView):
my_registration
=
None
context
[
"
my_registration
"
]
=
my_registration
buses
=
Bus
.
objects
.
filter
(
PermissionBackend
.
filter_queryset
(
self
.
request
.
user
,
Bus
,
"
view
"
))
\
buses
=
Bus
.
objects
.
filter
(
PermissionBackend
.
filter_queryset
(
self
.
request
.
user
,
Bus
,
"
view
"
))
\
.
filter
(
wei
=
self
.
object
).
annotate
(
count
=
Count
(
"
memberships
"
))
bus_table
=
BusTable
(
data
=
buses
,
prefix
=
"
bus-
"
)
context
[
'
buses
'
]
=
bus_table
...
...
@@ -307,7 +307,7 @@ class BusManageView(ProtectQuerysetMixin, LoginRequiredMixin, DetailView):
context
[
"
club
"
]
=
self
.
object
.
wei
bus
=
self
.
object
teams
=
BusTeam
.
objects
.
filter
(
PermissionBackend
.
filter_queryset
(
self
.
request
.
user
,
BusTeam
,
"
view
"
))
\
teams
=
BusTeam
.
objects
.
filter
(
PermissionBackend
.
filter_queryset
(
self
.
request
.
user
,
BusTeam
,
"
view
"
))
\
.
filter
(
bus
=
bus
).
annotate
(
count
=
Count
(
"
memberships
"
))
teams_table
=
BusTeamTable
(
data
=
teams
,
prefix
=
"
team-
"
)
context
[
"
teams
"
]
=
teams_table
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment