Hi Patrick,

> this doesn´t:
> milestone_list = milestones.get_list(responsible__exact=1,
> order_by=['-id'])

Try this:
milestone_list = milestones.get_list(responsible__id__exact=1,
order_by=['-id'])

"1" is the user's id, so this should work:

milestone_list = milestones.get_list(responsible__id__exact=user.id,
order_by=['-id'])

Cheers,
Andreas


On 12/19/05, patrick kranzlmüller <[EMAIL PROTECTED]> wrote:
>
> first issue:
>
> this works fine:
> milestone_list = milestones.get_list(id__exact=3, order_by=['-id'])
>
> this doesn´t:
> milestone_list = milestones.get_list(responsible__exact=1,
> order_by=['-id'])
>
> the model looks like;
> responsible = meta.ForeignKey(auth.User)
>
>
> second issue:
>
> i´m now able to display the username with my app. still, i´d like to
> have something like
> milestone_list = milestones.get_list(responsible__exact=user.id,
> order_by=['-id'])
>
> i don´t know if this is correct for "responsible__exact" is obviously
> wrong.
>
> thanks in advance.
> patrick
>
>

Reply via email to