more safely get the user setting for tickets per page

This commit is contained in:
Tom Bernens 2020-06-01 16:20:33 -07:00
parent 03760a921e
commit e10ffce24a

View File

@ -94,7 +94,7 @@ def dashboard(request):
"""
# user settings num tickets per page
tickets_per_page = request.user.usersettings_helpdesk.tickets_per_page
tickets_per_page = request.user.usersettings_helpdesk.settings.get('tickets_per_page') or 25
# page vars for the three ticket tables
user_tickets_page = request.GET.get('ut_page', 1)