aboutsummaryrefslogtreecommitdiffstats
path: root/servo/models/invoices.py
diff options
context:
space:
mode:
authorFilipp Lepalaan <filipp@mac.com>2015-09-29 00:24:27 +0300
committerFilipp Lepalaan <filipp@mac.com>2015-09-29 00:24:27 +0300
commit396a3458eda07858b1142477666e8af134a00db3 (patch)
tree21d41c2ad44d986d85cb3121a4bb3f0262284a1a /servo/models/invoices.py
parenta3f0cd1123f78620dcdd7bc4a9e850f41dfc4ca3 (diff)
downloadServo-396a3458eda07858b1142477666e8af134a00db3.tar.gz
Servo-396a3458eda07858b1142477666e8af134a00db3.tar.bz2
Servo-396a3458eda07858b1142477666e8af134a00db3.zip
Cleanup
Diffstat (limited to 'servo/models/invoices.py')
-rw-r--r--servo/models/invoices.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/servo/models/invoices.py b/servo/models/invoices.py
index d88fe60..7fa4287 100644
--- a/servo/models/invoices.py
+++ b/servo/models/invoices.py
@@ -110,7 +110,7 @@ class Invoice(models.Model):
return reverse("invoices-view_invoice", args=[self.pk])
class Meta:
- ordering = ('-id', )
+ ordering = ('-id',)
app_label = 'servo'
get_latest_by = "id"
@@ -177,6 +177,7 @@ def trigger_order_dispatched(sender, instance, created, **kwargs):
description = _(u'Order %s dispatched') % instance.order.code
instance.order.notify('dispatched', description, instance.created_by)
+
@receiver(post_save, sender=Payment)
def trigger_payment_received(sender, instance, created, **kwargs):
if created: