Skip to content

Commit fb1720e

Browse files
committed
blbl
1 parent 352f2ef commit fb1720e

File tree

1 file changed

+1
-1
lines changed
  • src/argus/htmx/notificationprofile

1 file changed

+1
-1
lines changed

src/argus/htmx/notificationprofile/views.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ def form_valid(self, form):
198198
return super().form_valid(form)
199199

200200
def get_prefix(self):
201-
if self.object.pk:
201+
if self.object and self.object.pk:
202202
prefix = f"npf{self.object.pk}"
203203
return prefix
204204
return self.prefix

0 commit comments

Comments
 (0)