Skip to content

Commit

Permalink
figuring out how to lint the code gave me an aneurysm
Browse files Browse the repository at this point in the history
  • Loading branch information
4d62 committed Nov 10, 2024
1 parent 41a638b commit f605cdc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion authentik/core/api/applications.py
Original file line number Diff line number Diff line change
Expand Up @@ -344,4 +344,4 @@ def perform_update(self, serializer):
super().perform_update(serializer)
new_slug = serializer.instance.slug
if old_slug != new_slug:
self.request.session['redirect_to'] = f'/applications/{new_slug}/'
self.request.session["redirect_to"] = f"/applications/{new_slug}/"

Check warning on line 347 in authentik/core/api/applications.py

View check run for this annotation

Codecov / codecov/patch

authentik/core/api/applications.py#L347

Added line #L347 was not covered by tests
2 changes: 1 addition & 1 deletion web/src/admin/applications/ApplicationForm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ export class ApplicationForm extends WithCapabilitiesConfig(ModelForm<Applicatio
if (this.instance && this.instance.slug !== app.slug) {
window.location.href = `#/core/applications/${app.slug}`;
}

return app;
}

Expand Down

0 comments on commit f605cdc

Please sign in to comment.