Truncate printer job name to 100 chars

This commit is contained in:
Tanner Collin 2023-08-20 03:54:13 +00:00
parent cbd17ea0b6
commit 835e24a027

View File

@ -1605,7 +1605,7 @@ class ProtocoinViewSet(Base):
memo = 'Protocoin - Purchase spent ₱ {} printing {}'.format(
total_cost,
request.data['job_name'],
request.data['job_name'][:100],
)
tx = models.Transaction.objects.create(