Changes between Version 2 and Version 3 of Ticket #36207, comment 8


Ignore:
Timestamp:
Feb 23, 2025, 12:30:41 PM (3 days ago)
Author:
Gregory Mariani

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #36207, comment 8

    v2 v3  
    66composite_pk.models.tenant.Comment.user.RelatedObjectDoesNotExist: Comment has no user.
    77}}}
     8
     9Here the model Comment l30
     10[https://github.com/django/django/blob/51cab4ad51616f8fdb050631be5c710b93685ec3/tests/composite_pk/models/tenant.py]
     11the CASCADE relations are:         
     12
     13{{{
     14from_fields=("tenant_id", "user_id"),
     15to_fields=("tenant_id", "id")
     16}}}
     17
     18So if we set user_id to None, the relation are destroyed
Back to Top