Skip to content

Commit c055aa1

Browse files
committed
Fix up references to set_attributes in docs
1 parent 897b046 commit c055aa1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

postgres/orm.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@
145145
... self.db.run( "UPDATE foo SET baz=%s WHERE bar=%s"
146146
... , (baz, self.bar)
147147
... )
148-
... self.update_attributes(baz=baz)
148+
... self.set_attributes(baz=baz)
149149
...
150150
>>> db.register_model(Foo)
151151
@@ -161,7 +161,7 @@
161161
90210
162162
163163
We never update your database for you. We also never sync your objects for you:
164-
note the use of the :py:meth:`~postgres.orm.Model.update_attributes` method to
164+
note the use of the :py:meth:`~postgres.orm.Model.set_attributes` method to
165165
sync our instance after modifying the database.
166166
167167
@@ -211,7 +211,7 @@ class Model(object):
211211
These attributes are read-only. We don't update your database. You are
212212
expected to do that yourself in methods on your subclass. To keep instance
213213
attributes in sync after a database update, use the
214-
:py:meth:`~postgres.orm.Model.update_attributes` helper.
214+
:py:meth:`~postgres.orm.Model.set_attributes` helper.
215215
216216
"""
217217

0 commit comments

Comments
 (0)