make simpler

This commit is contained in:
Matthias 2021-12-04 18:44:31 +01:00
parent 2413119cc1
commit d156e4c431
No known key found for this signature in database
GPG Key ID: F50EF5741D33E076

View File

@ -144,11 +144,6 @@ def trigger_notifaction(obj, category=None, obj_ref='pk', targets=None, target_f
"""
Send out an notification
"""
# Set defaults
if not category:
category = obj._meta.modelname
# Resolve objekt reference
obj_ref_value = getattr(obj, obj_ref)
# Try with some defaults