Add values_list("token, "expires") in between .order_by("-expires") and .first()
Brief description of rationale
Instead of retrieving all of the fields from the AccessToken object (which leads to slower load times), only retrieve necessary fields to filter the most recent Token. In turn, this will improve the load time of CSL apps.
Proposed changes
values_list("token, "expires")
in between.order_by("-expires")
and.first()
Brief description of rationale
Instead of retrieving all of the fields from the AccessToken object (which leads to slower load times), only retrieve necessary fields to filter the most recent Token. In turn, this will improve the load time of CSL apps.
1663