Skip to content

Commit

Permalink
fix(plugins): setup plugin call
Browse files Browse the repository at this point in the history
  • Loading branch information
thejoeejoee committed Nov 12, 2023
1 parent ea61bcc commit bf94ab9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion fiesta/apps/sections/views/plugins.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,11 @@ def get_context_data(self, **kwargs):

data.update(
{
"form_url": reverse_lazy("sections:change-plugin-state", kwargs={"pk": self.object.pk}),
"form_url": (
reverse_lazy("sections:change-plugin-state", kwargs={"pk": self.object.pk})
if self.object
else reverse_lazy("sections:setup-plugin")
),
}
)
return data
Expand Down

0 comments on commit bf94ab9

Please sign in to comment.