Skip to content

Commit

Permalink
fix a 6 years old issue 🤦‍pinax#21
Browse files Browse the repository at this point in the history
  • Loading branch information
Ondrej Chmelar committed Apr 5, 2019
1 parent 869af9e commit ed6f334
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pinax/notifications/hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def notice_setting_for_user(self, user, notice_type, medium, scoping=None):
"scoping_content_type": None,
"scoping_object_id": None
})
default = (NOTICE_MEDIA_DEFAULTS[medium] <= notice_type.default)
default = (NOTICE_MEDIA_DEFAULTS[str(medium)] <= notice_type.default)
kwargs.update({"send": default})
setting = user.noticesetting_set.create(**kwargs)
return setting
Expand Down

0 comments on commit ed6f334

Please sign in to comment.