Skip to content

Commit

Permalink
blbl
Browse files Browse the repository at this point in the history
  • Loading branch information
hmpf committed Jan 16, 2025
1 parent 352f2ef commit fb1720e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/argus/htmx/notificationprofile/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ def form_valid(self, form):
return super().form_valid(form)

def get_prefix(self):
if self.object.pk:
if self.object and self.object.pk:
prefix = f"npf{self.object.pk}"
return prefix
return self.prefix
Expand Down

0 comments on commit fb1720e

Please sign in to comment.