Skip to content

Commit

Permalink
chore: Pass ordered queryset to ProcessingRuleInlineFormset in Bluepr…
Browse files Browse the repository at this point in the history
…intEdit view.
  • Loading branch information
Nico-AP committed Jul 17, 2024
1 parent d9ef58c commit 776b384
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ddm/views/admin/data_donations.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,8 @@ def get_context_data(self, **kwargs):
context = super().get_context_data(**kwargs)
available_file_uploaders = FileUploader.objects.filter(project_id=self.kwargs['project_pk'])
context['form'].fields['file_uploader'].queryset = available_file_uploaders
context['formset'] = ProcessingRuleInlineFormset(instance=self.object)
context['formset'] = ProcessingRuleInlineFormset(
instance=self.object, queryset=self.object.processingrule_set.order_by('execution_order'))
return context

def post(self, request, *args, **kwargs):
Expand Down

0 comments on commit 776b384

Please sign in to comment.