Skip to content

Latest commit

 

History

History
13 lines (7 loc) · 757 Bytes

orm.md

File metadata and controls

13 lines (7 loc) · 757 Bytes

Due to Django's ORM design, database queries must be deferred using hooks. Otherwise, you will see a #!python SynchronousOnlyOperation exception.

These #!python SynchronousOnlyOperation exceptions may be resolved in a future version of Django containing an asynchronous ORM. However, it is best practice to always perform ORM calls in the background via hooks.

By default, automatic recursive fetching of #!python ManyToMany or #!python ForeignKey fields is enabled within the default #!python QueryOptions.postprocessor. This is needed to prevent #!python SynchronousOnlyOperation exceptions when accessing these fields within your ReactPy components.