Permalink
Browse files

Update models.rst

  • Loading branch information...
1 parent ac34a62 commit 0bfecec56d430bc158a45df61d6e078207da045d @genechow genechow committed Feb 28, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 pylons/models.rst
View
@@ -199,7 +199,7 @@ application. ::
def by_name(class_):
"""Return a query of users sorted by name."""
User = class_
- q = Session.query(User)
+ q = DBSession.query(User)
q = q.order_by(User.name)
return q

0 comments on commit 0bfecec

Please sign in to comment.