distinct on field not supported by sqlite
This commit is contained in:
parent
72e5df0cf5
commit
9fbfac7bdb
2 changed files with 2 additions and 2 deletions
|
|
@ -43,7 +43,7 @@ class PermissionBackend(ModelBackend):
|
|||
rolepermissions__role__membership__date_end__gte=datetime.date.today(),
|
||||
type=t,
|
||||
mask__rank__lte=get_current_session().get("permission_mask", 0),
|
||||
).distinct('club', 'pk',)
|
||||
).distinct()
|
||||
|
||||
@staticmethod
|
||||
def permissions(user, model, type):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue