Skip to content

Commit

Permalink
refactor(generic): rename GenericMergeForm to GenericMergeWithForm
Browse files Browse the repository at this point in the history
The form is used in the `MergeWith` view, so it should be called
accordingly.
  • Loading branch information
b1rger committed Nov 29, 2024
1 parent 91f7c77 commit 49cb9df
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion apis_core/generic/forms/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def __init__(self, *args, **kwargs):
self.fields[field].widget.choices = self.fields[field].choices


class GenericMergeForm(forms.Form):
class GenericMergeWithForm(forms.Form):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
self.helper = FormHelper()
Expand Down
4 changes: 2 additions & 2 deletions apis_core/generic/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
from .forms import (
GenericEnrichForm,
GenericImportForm,
GenericMergeForm,
GenericMergeWithForm,
GenericModelForm,
)
from .helpers import (
Expand Down Expand Up @@ -372,7 +372,7 @@ class MergeWith(GenericModelMixin, PermissionRequiredMixin, FormView):
"""

permission_action_required = "change"
form_class = GenericMergeForm
form_class = GenericMergeWithForm
template_name = "generic/generic_merge.html"

def setup(self, *args, **kwargs):
Expand Down

0 comments on commit 49cb9df

Please sign in to comment.