Changes between Initial Version and Version 1 of Ticket #36207, comment 7
- Timestamp:
- Feb 23, 2025, 10:51:04 AM (3 days ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #36207, comment 7
initial v1 1 Thanks for picking this up. I think being able to set `.user = None` is important. Maybe we need to adjust this [https://github.com/django/django/blob/51cab4ad51616f8fdb050631be5c710b93685ec3/django/db/models/fields/related_descriptors.py#L207 query [from `.get()` to `.filter(...).first()` to support that? The test model I was reusing was not nullable, but you can imagine another test model having a nullable ForeignObject.1 Thanks for picking this up. I think being able to set `.user = None` is important. Maybe we need to adjust this [https://github.com/django/django/blob/51cab4ad51616f8fdb050631be5c710b93685ec3/django/db/models/fields/related_descriptors.py#L207 query] from `.get()` to `.filter(...).first()` to support that? The test model I was reusing was not nullable, but you can imagine another test model having a nullable ForeignObject.