Skip to content

Commit

Permalink
Remove unused parameter
Browse files Browse the repository at this point in the history
After changes to update_htmx, this part is no longer used
  • Loading branch information
stveit committed Jan 10, 2025
1 parent a966c11 commit fe961ed
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/argus/htmx/destination/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,21 +57,16 @@ def update_htmx(request, pk: int) -> HttpResponse:
def _render_destination_list(
request,
create_form: Optional[DestinationFormCreate] = None,
update_forms: Optional[Sequence[DestinationFormUpdate]] = None,
template: str = "htmx/destination/destination_list.html",
) -> HttpResponse:
"""Function to render the destinations page.
:param create_form: this is used to display the form for creating a new destination
with errors while retaining the user input. If you want a blank form, pass None.
:param update_forms: list of update forms to display. Useful for rendering forms
with error messages while retaining the user input.
If this is None, the update forms will be generated from the user's destinations."""
with errors while retaining the user input. If you want a blank form, pass None."""

if create_form is None:
create_form = DestinationFormCreate()
if update_forms is None:
update_forms = _get_update_forms(request.user)
update_forms = _get_update_forms(request.user)
grouped_forms = _group_update_forms_by_media(update_forms)
context = {
"create_form": create_form,
Expand Down

0 comments on commit fe961ed

Please sign in to comment.