1
0
Fork 0

Fixes decimaal formatting

This commit is contained in:
Mouse Reeve 2021-03-24 09:51:49 -07:00
parent 9dc19b8bff
commit 1d53a06e35
4 changed files with 6 additions and 4 deletions

View file

@ -450,4 +450,6 @@ class DecimalField(ActivitypubFieldMixin, models.DecimalField):
""" activitypub-aware boolean field """
def field_to_activity(self, value):
if not value:
return None
return float(value)