0
votes
1answer
31 views

Returning extended fields in JSON

I have two tabels(Ingredient_Step and Ingredient) in on relation as you can see below: Models.Py class Ingredient_Step(models.Model): ingredient = models.ForeignKey(Ingredient) Step = ...
0
votes
0answers
80 views

Python: Encode/Decode dictionary contains list to/from json

I am developing a REST full service using Tornado. A method of this service encodes result to json which is a dictionary contains a list. I used json.dumps() method. The output would be like this: ...