Good morning,
I have this situation:
I have 3 classes, Document, Layout and Company
1 Document has 1 Layout 1 and Company ..
Document class:
layout = models.ForeignKey (Layout)
company = models.ForeignKey (Company)
I have a search page that is being filled by JSON, then the data layout a
Hi,
How do you fill the JSON?
You use the Document class as Main entity ?
Because if you have a Document entity, simply use the internal reference
to the related object.
example:
Assuming that you are filling a Map and then use the map for a quick
JSON transform.
{
'Document id': docu
thanks for answering my question... But i find an way better for this.
I create an gist explaining how to do :
https://gist.github.com/marioidival/6156074
Thanks!
Mário Idival
*Twitter *: *@marioigd*
*Facebook*: *mario.idival*
*User Linux : **#554446*
Skype*: marioidival*
*Blog: *https://conc
Good.
well if you use to serialize Models often your solution is the best and
probably the cleaner one :)
Nice work :)
Regards.
Giulio
Il 05/08/2013 16:28, Mário Idival ha scritto:
thanks for answering my question... But i find an way better for this.
I create an gist explaining how to d
4 matches
Mail list logo