Tweak the document json url, and make deferred_by json seriable.
- Legacy-Id: 2257
This commit is contained in:
parent
5f1ca04365
commit
7de19a332f
|
@ -666,7 +666,7 @@ class BallotWrapper:
|
|||
"approval_text": self.approval_text(),
|
||||
"ballot_writeup": self.ballot_writeup(),
|
||||
"ballot_id": self.ballot_id(),
|
||||
"deferred_by": self.deferred_by(),
|
||||
"deferred_by": unicode(self.deferred_by()),
|
||||
"deferred_date": self.deferred_date() and self.deferred_date().strftime("%Y-%m-%d") ,
|
||||
"positions": positions,
|
||||
"summary": summary,
|
||||
|
|
|
@ -39,7 +39,7 @@ urlpatterns = patterns('',
|
|||
(r'^all/$', views_search.all),
|
||||
(r'^active/$', views_search.active),
|
||||
(r'^(?P<name>[^/]+)/$', views_doc.document_main),
|
||||
(r'^(?P<name>[^/]+)/data.json$', views_doc.document_debug),
|
||||
(r'^(?P<name>[^/]+)/doc.json$', views_doc.document_debug),
|
||||
(r'^(?P<name>[^/]+)/_ballot.data$', views_doc.document_ballot),
|
||||
(r'^(?P<name>[^/]+)/ballot.tsv$', views_doc.ballot_tsv),
|
||||
(r'^(?P<name>[^/]+)/ballot.json$', views_doc.ballot_json),
|
||||
|
|
Loading…
Reference in a new issue