Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

date changes aaaah

  • Loading branch information...
commit 818018dcaa3e9b1c22a72a1ad9524820ce204149 1 parent 4e1a340
Mike Krieger authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 greetings/views.py
View
4 greetings/views.py
@@ -82,10 +82,12 @@ def json_from_card(card):
json['from_id'] = greeting.from_person.id
json['to'] = [str(person) for person in greeting.to_people.all() ]
json['hash'] = greeting.short_hash
- json['date'] = str(greeting.date_sent.isoformat())
+ json['date'] = str("%s-%s-%s" % (greeting.date_sent.year, greeting.date_sent.month, greeting.date_sent.day ))
json['text'] = greeting.text_content
if greeting.template_name:
json['template_name'] = greeting.template_name
+ else:
+ json['template_name'] = "polaroid"
if greeting.image_file:
json['image_url'] = greeting.image_file.url
if greeting.audio_file:
Please sign in to comment.
Something went wrong with that request. Please try again.