File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 145
145
... self.db.run( "UPDATE foo SET baz=%s WHERE bar=%s"
146
146
... , (baz, self.bar)
147
147
... )
148
- ... self.update_attributes (baz=baz)
148
+ ... self.set_attributes (baz=baz)
149
149
...
150
150
>>> db.register_model(Foo)
151
151
161
161
90210
162
162
163
163
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
165
165
sync our instance after modifying the database.
166
166
167
167
@@ -211,7 +211,7 @@ class Model(object):
211
211
These attributes are read-only. We don't update your database. You are
212
212
expected to do that yourself in methods on your subclass. To keep instance
213
213
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.
215
215
216
216
"""
217
217
You can’t perform that action at this time.
0 commit comments