Skip to content

Commit

Permalink
Use explicit join criterion in query (indico#6419)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomako committed Jun 25, 2024
1 parent adec288 commit 488e584
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion indico/modules/events/registration/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def delete_field_data():
registration_data = (RegistrationData.query
.join(RegistrationFormFieldData)
.join(RegistrationFormField, RegistrationFormFieldData.field_id == RegistrationFormField.id)
.join(RegistrationForm)
.join(RegistrationForm, RegistrationFormField.registration_form_id == RegistrationForm.id)
.join(Event)
.filter(~RegistrationFormField.is_purged,
RegistrationFormField.retention_period.isnot(None),
Expand Down

0 comments on commit 488e584

Please sign in to comment.