parent
e35c7812ea
commit
a8167c9dd6
1 changed files with 2 additions and 0 deletions
|
|
@ -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
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue