Re: models queryset and permissions

2011-01-05 Thread MarcoS
Hi Danfi, thanks for your reply. This help me! On 5 Gen, 10:06, Danfi wrote: > Esame: > name = models.Foreignkey(User) > ... > > Then queryset=Esame.name.get_rows_with_permission(Ecg(),'add') > > On 1月4日, 下午8时02分, MarcoS wrote: > > > Hi people, probably

Re: models queryset and permissions

2011-01-05 Thread Danfi
Esame: name = models.Foreignkey(User) ... Then queryset=Esame.name.get_rows_with_permission(Ecg(),'add') On 1月4日, 下午8时02分, MarcoS wrote: > Hi people, probably I'm making a mountain out of a molehill but I > can't figure > how to solve this problem; > > I've a form with a

Re: models queryset and permissions

2011-01-04 Thread MarcoS
The ModelMultipleChoicheField will return Esame objects -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to

models queryset and permissions

2011-01-04 Thread MarcoS
Hi people, probably I'm making a mountain out of a molehill but I can't figure how to solve this problem; I've a form with a ModelMultipleChoiceField. The queryset will contains all models for which the user has a particular permission (django.contrib.auth.models.Permission) (can_add). This is