X-Git-Url: https://git.mdrn.pl/prawokultury.git/blobdiff_plain/1331b925542ab5446c6df901f249fb8b71b078a7..fc3d026d2fd25e7bffbb3aa77be78a48f5be7b5a:/shop/models.py diff --git a/shop/models.py b/shop/models.py index 349cf43..aca0703 100644 --- a/shop/models.py +++ b/shop/models.py @@ -27,7 +27,7 @@ class Offer(models.Model): ordering = ['entry'] def __unicode__(self): - return self.entry.title + return unicode(self.entry) def get_absolute_url(self): return self.entry.get_absolute_url() @@ -121,4 +121,4 @@ def payment_status_changed_listener(sender, instance, old_status, new_status, ** _('New order has been placed.'), 'shop/email/payed_managers.txt' ) -getpaid.signals.payment_status_changed.connect(payment_status_changed_listener) +getpaid.signals.payment_status_changed.connect(payment_status_changed_listener, dispatch_uid='shop.models.payment_status_changed_listener')