Truncate printer job name to 100 chars

master
Tanner Collin 9 months ago
parent cbd17ea0b6
commit 835e24a027
  1. 2
      apiserver/apiserver/api/views.py

@ -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…
Cancel
Save