Skip to content

Commit

Permalink
fixed bug where updating a post would redirect to a 404 page
Browse files Browse the repository at this point in the history
  • Loading branch information
Eugen committed Sep 10, 2010
1 parent f1be4b8 commit 725fee1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion TODO
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
* BUG: When previewing an existing Page, show the date of the page, not just now()!
* BUG: When updating the title and clicking on update redirect to updated page not old!
* be able to rename categories
* feeds
* feedburner?
Expand Down Expand Up @@ -33,6 +32,7 @@

* Update to Flask-SQLAlchemy 0.10 and rewrite tidy_tags to use model_committed event
* search (http://pypi.python.org/pypi/Whoosh/)
* put search field on archives page
* rename in setup.py to v0.6
* Refactor(pyflakes/epydoc)/Tests/Document/Readme/Changelog

Expand Down
2 changes: 1 addition & 1 deletion simblin/views/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def create_post(slug):
db.session.commit()
signals.post_updated.send(post)
flash('Post was successfully updated')
return redirect(next or url_for('main.show_post', slug=post.slug))
return redirect(url_for('main.show_post', slug=post.slug))


@admin.route('/_delete/<slug>', methods=['GET', 'POST'])
Expand Down

0 comments on commit 725fee1

Please sign in to comment.