Gist 67bed86151bd1a473e5d
✓ Published0🌍 Public
Aandybak
Last edited Sep 23, 2014
Created on Sep 23, 2014
This code defines a method that builds a context dictionary for notifier templates. It selects a billing contact based on the booking or account, falling back to a blank Contact instance. The returned dictionary includes invoice details like due date, type, number, total price, and an item table, using the model’s existing fields and methods. The example demonstrates a typical Django model helper for preparing template data.
AI-generated description