def photo_count(self, public=True):
        if public:
            return self.public().count()
        else:
            return self.photos.filter(sites__id=settings.SITE_ID).count()
Return a count of all the photos in this gallery.
dataset/ETHPy150Open jdriscoll/django-photologue/photologue/models.py/Gallery.photo_count