-
Notifications
You must be signed in to change notification settings - Fork 0
Fixes: #101 - Self referential object fields #186
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: feature
Are you sure you want to change the base?
Conversation
… logic branches in single object fields
… logic branches in single object fields
…into self-referential-object-fields
I had to reinstate the previous logic branch for cross-referential single object fields instead of using I have yet to understand why the UI and the raw code work differently, and maybe it can be streamlined later, but for now at least both conditions work. |
Fixes: #101
Adds a
LazyForeignKey
class to handle self-referential single Object fields.Adds circular import/recursion detection and skips object/multiobject field resolution on 2nd-level (related) object fields to avoid infinite loops.
Enables both single-object and multi-object self-referential field operation as shown below.