Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Sith
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
59
Issues
59
List
Boards
Labels
Service Desk
Milestones
Merge Requests
9
Merge Requests
9
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
AE
Sith
Commits
493d48bc
Commit
493d48bc
authored
Mar 13, 2017
by
Sli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Pagination length in settings
parent
e4deacbe
Pipeline
#800
passed with stage
in 2 minutes and 52 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
counter/views.py
counter/views.py
+1
-1
sith/settings.py
sith/settings.py
+3
-0
No files found.
counter/views.py
View file @
493d48bc
...
...
@@ -939,7 +939,7 @@ class CashSummaryListView(CanEditPropMixin, CounterAdminTabsMixin, ListView):
context_object_name
=
"cashsummary_list"
current_tab
=
"cash_summary"
queryset
=
CashRegisterSummary
.
objects
.
all
().
order_by
(
'-date'
)
paginate_by
=
10
paginate_by
=
settings
.
SITH_COUNTER_CASH_SUMMARY_LENGTH
def
get_context_data
(
self
,
**
kwargs
):
""" Add sums to the context """
...
...
sith/settings.py
View file @
493d48bc
...
...
@@ -357,6 +357,9 @@ SITH_COUNTER_BANK = [
(
'LA-POSTE'
,
'La Poste'
),
]
# Defines pagination for cash summary
SITH_COUNTER_CASH_SUMMARY_LENGTH
=
50
# Defines which product type is the refilling type, and thus increases the account amount
SITH_COUNTER_PRODUCTTYPE_REFILLING
=
11
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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