Changes between Version 2 and Version 3 of Ticket #36207, comment 8
- Timestamp:
- Feb 23, 2025, 12:30:41 PM (3 days ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #36207, comment 8
v2 v3 6 6 composite_pk.models.tenant.Comment.user.RelatedObjectDoesNotExist: Comment has no user. 7 7 }}} 8 9 Here the model Comment l30 10 [https://github.com/django/django/blob/51cab4ad51616f8fdb050631be5c710b93685ec3/tests/composite_pk/models/tenant.py] 11 the CASCADE relations are: 12 13 {{{ 14 from_fields=("tenant_id", "user_id"), 15 to_fields=("tenant_id", "id") 16 }}} 17 18 So if we set user_id to None, the relation are destroyed