From 33a6e5cb02189b7621a279c32c12b5c3d83ba680 Mon Sep 17 00:00:00 2001 From: Mitch Riedstra Date: Thu, 9 Nov 2017 15:57:46 -0500 Subject: Show number of attachments, and color code issues with loads. Prevent invoice generation on zero amounts and no attachments. Add a way for superusers to edit invoices. Add a field to invoices for a payment identifier. E.g. "Check #1234" --- app/dispatch/monkey_patch.py | 10 ---------- 1 file changed, 10 deletions(-) delete mode 100644 app/dispatch/monkey_patch.py (limited to 'app/dispatch/monkey_patch.py') diff --git a/app/dispatch/monkey_patch.py b/app/dispatch/monkey_patch.py deleted file mode 100644 index cc61b6e..0000000 --- a/app/dispatch/monkey_patch.py +++ /dev/null @@ -1,10 +0,0 @@ -from django.contrib.auth import get_user_model -from django.core.urlresolvers import reverse - -# This should be going away soon with the addition -# of my custom user model - -def get_absolute_url(self): - return reverse('driver_details', kwargs={'pk': self.pk}) - -User.add_to_class("get_absolute_url", get_absolute_url) -- cgit v1.2.3