Change default to display renew date

close #931
This commit is contained in:
Florent 2013-01-08 21:01:06 +01:00
commit a8167c9dd6

View file

@ -33,6 +33,8 @@ class SubscriptionsFormatter(PrettyFormatter):
MANDATORY_FIELDS = ('id', 'label')
def get_title(self, obj):
if obj.renewdate:
return u"%s - %s" % (obj.label, obj.renewdate.strftime('%d/%m/%y'))
return obj.label