Stripe in Blender Studio #93018
@ -15,6 +15,8 @@ import django.db.models
|
||||
|
||||
import bleach
|
||||
|
||||
import looper.money
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
@ -194,6 +196,12 @@ class ExportCSVMixin:
|
||||
|
||||
if isinstance(value, SafeString):
|
||||
value = bleach.clean(value, tags=[], attributes={}, styles=[], strip=True)
|
||||
|
||||
# String representation of `Money` is prefixed with a currency code.
|
||||
# We want CSVs to have amounts without currency codes, however.
|
||||
if isinstance(value, looper.money.Money):
|
||||
value = value.decimals_string
|
||||
|
||||
values.append(str(value))
|
||||
writer.writerow(values)
|
||||
return response
|
||||
|
@ -1,6 +1,6 @@
|
||||
[tool.poetry]
|
||||
name = "looper"
|
||||
version = "3.2.9"
|
||||
version = "3.2.10"
|
||||
description = ""
|
||||
authors = [
|
||||
"Francesco Siddi <francesco@blender.org>",
|
||||
|
Loading…
Reference in New Issue
Block a user