Changes between Initial Version and Version 1 of Ticket #33586, comment 20
- Timestamp:
- Oct 7, 2022, 3:04:19 PM (2 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #33586, comment 20
initial v1 13 13 Due to this difference {{{check_rel_lookup_compatibility}}} is returning False. 14 14 15 Edit: 16 So the real cause of this error is due to preventing rendering of related models up to the point where it's necessary (just before RunPython) in [https://code.djangoproject.com/ticket/27666 #27666] . Also it was mentioned [https://github.com/django/django/pull/7589/files#diff-f25b39d2e62a4fe6265aa1fcc1202096ef05adf1643536c4db5351ef3a9fc329R485 here] that if someone wants to work with on model classes or model instances, they must render model states like {{{from_state.clear_delayed_apps_cache()}}} to make 17 related models available. 18 A ticket([https://code.djangoproject.com/ticket/27737 #27737]) is also available stating that changes made in [https://code.djangoproject.com/ticket/27666 #27666] might cause error.