Browse Source

Define display_subsciption_reference short description for admin view.

opi 8 years ago
parent
commit
4610d9eb38
1 changed files with 1 additions and 0 deletions
  1. 1 0
      coin/offers/models.py

+ 1 - 0
coin/offers/models.py

@@ -109,6 +109,7 @@ class OfferSubscription(models.Model):
 
     def display_subsciption_reference(self):
         return settings.SUBSCRIPTION_REFERENCE.format(subsciption=self)
+    display_subsciption_reference.short_description = 'Référence'
 
     def __unicode__(self):
         return '%s - %s - %s' % (self.member, self.offer.name,