Changes between Initial Version and Version 1 of Ticket #31064, comment 6
- Timestamp:
- Apr 3, 2020, 1:05:28 AM (5 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #31064, comment 6
initial v1 1 That makes sense, good old model level cache biting us again. If `related_objects` gets out of sync it's likely because we forgot to clear something in `AlterField.state_forwards` and my money is on `is_referenced_by_foreign_key` not taking into account `ManyToManyField` defined without an explicit `through` .1 That makes sense, good old model level cache biting us again. If `related_objects` gets out of sync it's likely because we forgot to clear something in `AlterField.state_forwards` and my money is on `is_referenced_by_foreign_key` not taking into account `ManyToManyField` defined without an explicit `through` since that won't create any entry in `state.models`.