Re: Need help with related objects.

2007-10-12 Thread Andreas Pfrengle
Perhaps you should provide your full models, since day as well as worker in class WorkingDay refer to a model called Notary. I'm probably also not sure what you are trying to describe with your models - but shouldn't worker in WorkingDay refer to your class worker (btw: call it Worker with big W,

Need help with related objects.

2007-10-11 Thread aabele
Hallo - i'm kind of newbie in django, but actually like it very much. I need to make a search panel in web site where users could search worker by name, city etc, and by working time and day. I would like to make this panel using django db-api, not raw sql. Here are two models. --

Re: Help with related objects

2006-10-03 Thread Carlos Yoder
Just FYI, I cracked it myself.Me gets smarter! =)If anyone googles for this and is in a similar situation, pls let me know.On 10/3/06, Carlos Yoder <[EMAIL PROTECTED]> wrote: Hello all, I'm asking for help again, this time with related objects.I need to do what I think is a very simple task: allow

Help with related objects

2006-10-03 Thread Carlos Yoder
Hello all, I'm asking for help again, this time with related objects.I need to do what I think is a very simple task: allow users to edit their own preferences (using a custom 'admin' like interface).Their own preferences are located in an extension of the User model, as follows: class UserProfile(