Permalink
Browse files

Properly filter for Unpublished page.

  • Loading branch information...
spladug committed Jun 4, 2012
1 parent 4215a10 commit c439dea4805e4c94709185c24ae1a745e25ca049
Showing with 2 additions and 1 deletion.
  1. +2 −1 postcards/views.py
View
@@ -101,7 +101,8 @@ def new_postcard_form():
@app.route('/unpublished', methods=['GET'])
def unpublished():
base_query = (Postcard.query.filter(Postcard.deleted == False)
- .filter(Postcard.published == False)
+ .filter(db.or_(Postcard.published == False,
+ Postcard.published == None))
.options(db.subqueryload('tags'))
.order_by(db.asc(Postcard.date)))
pagination = build_pagination(base_query)

0 comments on commit c439dea

Please sign in to comment.