Skip to content

Commit

Permalink
fixed rgb=None
Browse files Browse the repository at this point in the history
  • Loading branch information
Nik Sauer committed Jan 30, 2025
1 parent 7a9968f commit 4fa0aa7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/campaign/templatetags/filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,6 @@ def at(l, id):

@register.filter
def to_rgb(tup):
if tup is None:
return None
return ','.join([str(x) for x in tup])

0 comments on commit 4fa0aa7

Please sign in to comment.