agendas: change on_delete for Agenda -> EventsType to SET_NULL (#85974) #208
Loading…
Reference in New Issue
No description provided.
Delete Branch "wip/85974-avoid-cascade-when-deleting-eventtype"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
172f38d90a
toc7eefafb75
WIP: agendas: change on_delete for Agenda -> EventsType to SET_NULL (#85974)to agendas: change on_delete for Agenda -> EventsType to SET_NULL (#85974)c7eefafb75
to7c1ab68497
agendas: change on_delete for Agenda -> EventsType to SET_NULL (#85974)to WIP: agendas: change on_delete for Agenda -> EventsType to SET_NULL (#85974)7c1ab68497
to08a58078ad
WIP: agendas: change on_delete for Agenda -> EventsType to SET_NULL (#85974)to agendas: change on_delete for Agenda -> EventsType to SET_NULL (#85974)@ -164,1 +164,4 @@
def test_delete_referenced_events_type(app):
events_type = EventsType.objects.create(label='Foobar')
events_type.save()
pas besoin de save ici, rien n'a été modifié depuis le create
@ -165,0 +166,4 @@
events_type = EventsType.objects.create(label='Foobar')
events_type.save()
agenda = Agenda(label='Foo Bar', events_type=events_type)
Agenda.objects.create pour économiser un save :)
Super, merci :)
08a58078ad
to3b3d558444
ok pour moi, mais attention pas de merge cette semaine :)
Vu sur jabber, on pourrait en fait merger, pour éviter deux semaines de plus avec ce risque de perte de données en production.
3b3d558444
to9945568a57