diff --git a/scipost_django/profiles/forms.py b/scipost_django/profiles/forms.py index bfe37850141465446c2a917fc05a8f3233265ec4..26e31ef39e7974feeef09a82e2d9dad5696a69c3 100644 --- a/scipost_django/profiles/forms.py +++ b/scipost_django/profiles/forms.py @@ -117,18 +117,18 @@ class SimpleProfileForm(ProfileForm): class ProfileMergeForm(forms.Form): to_merge = ModelChoiceFieldwithid( - queryset=Profile.objects.potential_duplicates(), + queryset=Profile.objects.none(), empty_label=None, label="Merge this profile", ) to_merge_into = ModelChoiceFieldwithid( - queryset=Profile.objects.potential_duplicates(), + queryset=Profile.objects.none(), empty_label=None, label="into this profile", ) def __init__(self, *args, **kwargs): - queryset = kwargs.pop("queryset", None) + queryset = kwargs.pop("queryset", Profile.objects.potential_duplicates()) super().__init__(*args, **kwargs) if queryset: self.fields["to_merge"].queryset = queryset