diff options
| author | Mitch Riedstra <Mitch@riedstra.us> | 2017-11-09 15:57:46 -0500 |
|---|---|---|
| committer | Mitch Riedstra <Mitch@riedstra.us> | 2017-11-09 15:57:46 -0500 |
| commit | 33a6e5cb02189b7621a279c32c12b5c3d83ba680 (patch) | |
| tree | 6d9776af90222f8062921b62fc7f6f4b5fa01dc7 /app/dispatch/monkey_patch.py | |
| parent | c055260bb88fd407c81ad0d40dd288a5aae4fb17 (diff) | |
| download | dispatch-tracker-33a6e5cb02189b7621a279c32c12b5c3d83ba680.tar.gz dispatch-tracker-33a6e5cb02189b7621a279c32c12b5c3d83ba680.tar.xz | |
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"
Diffstat (limited to 'app/dispatch/monkey_patch.py')
| -rw-r--r-- | app/dispatch/monkey_patch.py | 10 |
1 files changed, 0 insertions, 10 deletions
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) |
