Re: Retrieving json stored in TextField as json

2013-10-10 Thread Marc Aymerich
On Thu, Oct 10, 2013 at 6:02 PM, Daniel Roseman wrote: > On Thursday, 10 October 2013 10:08:18 UTC+1, Marc Aymerich wrote: >> >> Hi Rafael, thanks ! >> I forgot to mention that I was already using django-jsonfield >> https://github.com/bradjasper/django-jsonfield >> and now I've tried with django-

Re: Retrieving json stored in TextField as json

2013-10-10 Thread Daniel Roseman
On Thursday, 10 October 2013 10:08:18 UTC+1, Marc Aymerich wrote: > Hi Rafael, thanks ! > I forgot to mention that I was already using django-jsonfield > https://github.com/bradjasper/django-jsonfield > and now I've tried with django-json-field but with the same unfortunate > result: > > Time

Re: Retrieving json stored in TextField as json

2013-10-10 Thread Marc Aymerich
Hi Rafael, thanks ! I forgot to mention that I was already using django-jsonfield https://github.com/bradjasper/django-jsonfield and now I've tried with django-json-field but with the same unfortunate result: TimeSerie.objects.filter(type='cpu').values('value') [{'value': '{"scheduled":2,"total":8

Re: Retrieving json stored in TextField as json

2013-10-09 Thread Rafael Durán Castañeda
I'm using django-json-field [1] for solving the same problem. [1] https://github.com/derek-schaefer/django-json-field HTH El 09/10/2013, a las 16:01, Marc Aymerich escribió: > Hi, > I'm storing large volumes of json data in a TextFields, Then I have a > view that converts this text data into JS

Retrieving json stored in TextField as json

2013-10-09 Thread Marc Aymerich
Hi, I'm storing large volumes of json data in a TextFields, Then I have a view that converts this text data into JSON, but this silly operation requires a considerable amount of resources for a large dataset. It would be nice if I'm able to retrieve native JSON directly from the database. As you