django-getpaid / django-plans

Django application for managing account plans and quotas
MIT License
509 stars 127 forks source link

Fix base/models/get_initial_number not fetching the highest number #193

Open milano-slesarik opened 1 month ago

milano-slesarik commented 1 month ago

values(...).last() returns a dict, on which getattr doesn't work, so get_initial_number always returned 1 instead of the highest Invoice.number