Skip to content

Commit

Permalink
Merge pull request #544 from coders4help/develop
Browse files Browse the repository at this point in the history
Apply bug fix
  • Loading branch information
pitpalme authored Apr 1, 2022
2 parents 7766f5b + fdf4df9 commit 5a2f0ed
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scheduletemplates/managers.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# coding: utf-8
from django.db import models
from django.db.models import F


class ShiftTemplateManager(models.Manager):
Expand All @@ -16,8 +17,8 @@ def get_queryset(self):

qs = qs.order_by(
"schedule_template",
"task",
"workplace",
F("task__priority").desc(nulls_last=True),
F("workplace__priority").desc(nulls_last=True),
"starting_time",
"-days",
"-ending_time",
Expand Down

0 comments on commit 5a2f0ed

Please sign in to comment.