Skip to content

Commit

Permalink
fixup: Send notifications via django-q2
Browse files Browse the repository at this point in the history
(fixes tests)
  • Loading branch information
hmpf committed Apr 25, 2023
1 parent b36da1a commit 7b49f9b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/argus/notificationprofile/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,8 @@ class Meta:

def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
self.filter_wrapper = FilterWrapper(self.filter, self.user)
user = getattr(self, 'user', None)
self.filter_wrapper = FilterWrapper(self.filter, user)

def __str__(self):
return f"{self.name} [{self.filter_string}]"
Expand Down

0 comments on commit 7b49f9b

Please sign in to comment.