Truncate printer job name to 100 chars
This commit is contained in:
parent
cbd17ea0b6
commit
835e24a027
|
@ -1605,7 +1605,7 @@ class ProtocoinViewSet(Base):
|
||||||
|
|
||||||
memo = 'Protocoin - Purchase spent ₱ {} printing {}'.format(
|
memo = 'Protocoin - Purchase spent ₱ {} printing {}'.format(
|
||||||
total_cost,
|
total_cost,
|
||||||
request.data['job_name'],
|
request.data['job_name'][:100],
|
||||||
)
|
)
|
||||||
|
|
||||||
tx = models.Transaction.objects.create(
|
tx = models.Transaction.objects.create(
|
||||||
|
|
Loading…
Reference in New Issue
Block a user