summaryrefslogtreecommitdiff
path: root/src/py_post.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-11-14 06:11:45 -0500
committerJohn Wiegley <johnw@newartisans.com>2009-11-14 06:11:45 -0500
commit3bec708e384290b714b3f5735904927f4755e39a (patch)
treec1758466c926763cd8f588decaa39006c16e7bb3 /src/py_post.cc
parentd12c7e08c67ff4060426cdc89ad05952cc5d4446 (diff)
downloadfork-ledger-3bec708e384290b714b3f5735904927f4755e39a.tar.gz
fork-ledger-3bec708e384290b714b3f5735904927f4755e39a.tar.bz2
fork-ledger-3bec708e384290b714b3f5735904927f4755e39a.zip
Fixed an internal reference issue with Python
Diffstat (limited to 'src/py_post.cc')
-rw-r--r--src/py_post.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/py_post.cc b/src/py_post.cc
index 8aabea28..20cdba6b 100644
--- a/src/py_post.cc
+++ b/src/py_post.cc
@@ -116,7 +116,7 @@ void export_post()
make_setter(&post_t::xdata_t::datetime))
.add_property("account",
make_getter(&post_t::xdata_t::account,
- return_internal_reference<>()),
+ return_value_policy<reference_existing_object>()),
make_setter(&post_t::xdata_t::account,
with_custodian_and_ward<1, 2>()))
.add_property("sort_values",