Commits

Guilherme Gondim  committed 6fc5020

pictures in non-public albums are also non-public

  • Participants
  • Parent commits 77e1342

Comments (0)

Files changed (1)

File galeria/models.py

     use_for_related_fields = True
 
     def public(self):
-        return super(PictureManager, self).filter(is_public=True)
+        return super(PictureManager, self).filter(is_public=True, album__is_public=True)
 
 
 class Picture(models.Model):