mirror of
https://github.com/ae-utbm/sith.git
synced 2026-04-03 17:29:40 +00:00
Fix bug where you can't select /SAS as a parent album
This commit is contained in:
@@ -205,7 +205,13 @@ class AlbumQuerySet(models.QuerySet):
|
||||
|
||||
class SASAlbumManager(models.Manager):
|
||||
def get_queryset(self):
|
||||
return super().get_queryset().filter(is_in_sas=True, is_folder=True)
|
||||
return (
|
||||
super()
|
||||
.get_queryset()
|
||||
.filter(
|
||||
Q(id=settings.SITH_SAS_ROOT_DIR_ID) | Q(is_in_sas=True, is_folder=True)
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
class Album(SasFile):
|
||||
|
||||
Reference in New Issue
Block a user