1. Dan Jacob
  2. newsmeme

Commits

danjac  committed 59d3516

comment restrict fix

  • Participants
  • Parent commits 7f2e35a
  • Branches default

Comments (0)

Files changed (1)

File newsmeme/models.py

View file
                 criteria.append(db.and_(Post.access==Post.FRIENDS,
                                         Post.author_id.in_(user.friends)))
         
-        return self.filter(reduce(db.or_, criteria))
+        return q.filter(reduce(db.or_, criteria))
 
    
 class Comment(db.Model):