Truncate printer job name to 100 chars
This commit is contained in:
@@ -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(
|
||||||
|
Reference in New Issue
Block a user