Use DjangoJSONEncoder in the json_dumps template tag.

Review Request #4885 — Created Nov. 3, 2013 and submitted

Information

Djblets
master

Reviewers

Use DjangoJSONEncoder in the json_dumps template tag.

By using DjangoJSONEncoder, we can properly serialize a few extra types
that the default JSONEncoder does not handle the way that's typically
expected in a Django app, such as timestamps. This ensures that a
timestamp serialized using json_dumps will appear the same as a
timestamp serialized through a WebAPIResource.

Tested with a template in Review Board and saw that the timestamp in the template
matched that in the API.

david
  1. Ship It!
  2. 
      
chipx86
Review request changed

Status: Closed (submitted)

Loading...