Re: Model and Template Problem

2007-10-29 Thread niklas.voss
I solved it. I just used a ForeignKey... i had forgotten, there is already a possibility to do that. Thank you for your help --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this

Model and Template Problem

2007-10-28 Thread niklas.voss
I have a Problem, i have one Model, which has some Data, and another Model, which has some Data. Let's call it Model1 and Model2! The Problem ist there is a Field in Model1 which has an ID of a Model2-Object and Model1 has a function that return the Model2-Object with that ID, too. How can i call

Global Variables in Templates?

2007-10-07 Thread niklas.voss
I searched around and haven't found anything about this Topic, so is it possible to define Global Variables, which i can get in templates? So on my site i have a couple of settings, which are most time the same and i didn't want to send them with every new app again with render_to_response to

Re: Variables in TemplateTags

2007-10-03 Thread niklas.voss
On 3 Okt., 13:18, peschler <[EMAIL PROTECTED]> wrote: > Hi Niklas, > > > So in code it should look like this: > > If user is my argument that was given to render_to_response, i want to > > give the function the submodel status of user; like this: > > {{ percentbar user.status }} > > Some docs on

Variables in TemplateTags

2007-10-02 Thread niklas.voss
I have a Problem and can't find anything about it, that helps me... I integrated a self-made templatetag into django and it works well. this tag just generate a percent bar. There is only one argument which is given to the function, it is the percentage status, but i dont want a static