summaryrefslogtreecommitdiff
path: root/docs/faq.rst
diff options
context:
space:
mode:
authorNejc Habjan <hab.nejc@gmail.com>2021-05-02 13:12:11 +0200
committerNejc Habjan <hab.nejc@gmail.com>2021-05-02 13:12:11 +0200
commit796c700cf854b547afb56bb6ea47a5600f437e47 (patch)
treef236a139a844cf055c8fe9769203b481f5380a8a /docs/faq.rst
parentb563cdc1a6cd585647fc53722081dceb6f7b4466 (diff)
downloadgitlab-fix/persist-attributes-on-save.tar.gz
fix(base): allow persisting attributes when updating objectfix/persist-attributes-on-save
Diffstat (limited to 'docs/faq.rst')
-rw-r--r--docs/faq.rst5
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/faq.rst b/docs/faq.rst
index fe71198..9e3cca1 100644
--- a/docs/faq.rst
+++ b/docs/faq.rst
@@ -31,3 +31,8 @@ How can I clone the repository of a project?
print(project.attributes) # displays all the attributes
git_url = project.ssh_url_to_repo
subprocess.call(['git', 'clone', git_url])
+
+I get an ``AttributeError`` when accessing attributes after ``save()`` or ``refresh()``.
+ You are most likely trying to access an attribute that was not returned
+ by the server on the second request. Use the ``persist_attributes=True``
+ argument to override this - see :ref:`persist_attributes`.