Skip to content

Commit

Permalink
relationship: fix lazy='lazy', valid value is 'select''
Browse files Browse the repository at this point in the history
this also prepares upgrade to SA 0.9
  • Loading branch information
Bertrand Mathieu committed Oct 3, 2014
1 parent 6fda3fb commit 43efc05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion abilian/core/models/subjects.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ class Group(Principal, db.Model):
description = Column(UnicodeText, info=SEARCHABLE)

members = relationship("User", secondary=membership,
backref=backref('groups', lazy='lazy'))
backref=backref('groups', lazy='select'))
admins = relationship("User", secondary=administratorship)

photo = deferred(Column(LargeBinary))
Expand Down

0 comments on commit 43efc05

Please sign in to comment.