Re: Newbie problem with view/model interaction

2007-03-26 Thread [EMAIL PROTECTED]
Sorry I didn't see this thead earlier. We wrote a proposal review system for PyCon2007. The source code is under the Python License. http://us.pycon.org/TX2007/PyConTech https://svn.python.org/conference/django/trunk/ The goal is to write conference software for any conference. I could use some

Re: Newbie problem with view/model interaction

2007-03-26 Thread Malcolm Tredinnick
Hey Ross. :-) On Mon, 2007-03-26 at 01:48 -0700, Ross Burton wrote: > On Mar 25, 3:28 pm, "Ross Burton" <[EMAIL PROTECTED]> wrote: > > > What is it you want to do with the ones they've voted on vs. haven't? If > > > you're going to hide the ones they've already voted on, just write a > > > query

Re: Newbie problem with view/model interaction

2007-03-26 Thread Ross Burton
On Mar 25, 3:28 pm, "Ross Burton" <[EMAIL PROTECTED]> wrote: > > What is it you want to do with the ones they've voted on vs. haven't? If > > you're going to hide the ones they've already voted on, just write a > > query in the view method that only returns those and pass that to the > > context.

Re: Newbie problem with view/model interaction

2007-03-25 Thread Ross Burton
(re-sending, apologies if this hits the list twice) On Mar 24, 5:27 pm, "Todd O'Bryan" <[EMAIL PROTECTED]> wrote: > What is it you want to do with the ones they've voted on vs. haven't? If > you're going to hide the ones they've already voted on, just write a > query in the view method that only

Re: Newbie problem with view/model interaction

2007-03-24 Thread James Bennett
On 3/24/07, Ivan Sagalaev <[EMAIL PROTECTED]> wrote: > Not related to your question, but this is called 'template' in Django. > 'View' means a different thing (a controller). Well, Django doesn't really have anything that strictly matches the "controller" aspect; even Martin Fowler in his writeup

Re: Newbie problem with view/model interaction

2007-03-24 Thread Todd O'Bryan
What is it you want to do with the ones they've voted on vs. haven't? If you're going to hide the ones they've already voted on, just write a query in the view method that only returns those and pass that to the context. (Note: the view method, not the template. See Ivan's response.) If they have

Re: Newbie problem with view/model interaction

2007-03-24 Thread Ivan Sagalaev
Ross Burton wrote: > then in the view: > > {% for paper in object_list|dictsort:"title" %} > {% if paper.has_voted( TODO ) %} > Not related to your question, but this is called 'template' in Django. 'View' means a different thing (a controller). > I then discovered that you can't pass a