Automatically cascade deletes to conference session votes
authorMagnus Hagander <magnus@hagander.net>
Thu, 16 Aug 2018 20:52:22 +0000 (22:52 +0200)
committerMagnus Hagander <magnus@hagander.net>
Thu, 16 Aug 2018 20:52:22 +0000 (22:52 +0200)
Without this, a session that had votes on it would not be possible to
delete.

postgresqleu/confreg/backendforms.py

index 5a975f966901fa8ab700988a917fc039597952e7..b913d24d08c770ca1d8a4b7f854956347d44b037 100644 (file)
@@ -403,7 +403,7 @@ class BackendConferenceSessionForm(BackendForm):
        }
        allow_copy_previous = True
        copy_transform_form = BackendTransformConferenceDateTimeForm
-       auto_cascade_delete_to = ['conferencesession_speaker', ]
+       auto_cascade_delete_to = ['conferencesession_speaker', 'conferencesessionvote']
 
        class Meta:
                model = ConferenceSession