Hi. I have been trying to get django to return my models as xml. I
have tried using the xml serializer but i cannot get it to send back
anything but the initial model.
I would like to get nested xml like below (where Department has a
ForeignKey to Organization).
My Org
Departme
the
get_query_set().filter - I am not actually interested in limiting
results to 'O' :-) I have seen a "hack" using this:
http://lukeplant.me.uk/blog.php?id=1107301634
Is this still the best way to get the request user object or is there
some other way. It was unclear in the
Thank you all for your quick responses. I was passing the class
instead of the instance. Everything is working great now!
On Apr 22, 12:20 pm, Malcolm Tredinnick <[EMAIL PROTECTED]>
wrote:
> On Tue, 2008-04-22 at 09:02 -0700, Explore wrote:
> > Hi. I am new to django and I am
Karan and Malcolm,
Thank you both - that was the problem. It is working great now!
On Apr 22, 12:20 pm, Malcolm Tredinnick <[EMAIL PROTECTED]>
wrote:
> On Tue, 2008-04-22 at 09:02 -0700, Explore wrote:
> > Hi. I am new to django and I am trying to get a handle around the form
>
Hi. I am new to django and I am trying to get a handle around the form
processing. I am using the svn trunk Revision: 7419 on Windows with
the development server. I have a views.py setup in my app that looks
like this:
form = TestingForm()
print form.as_table()
print form.as_table
retur
5 matches
Mail list logo