2010/9/25 Daniel Roseman <dan...@roseman.org.uk>: > > > On Sep 25, 9:51 am, ionut cristian cucu <cucife...@gmail.com> wrote: >> I've tried to do something like that: >> class Pacienti_manager(models.Manager): >> def get_visible(self): >> return(super(Pacienti_manager, >> self).get_query_set().filter(pacient_id__exact=pacient_id) >> but still no go, I tried >> def queryset(self, request): >> qs= super(Pacient, self).queryset(request) >> return qs.filter(exit_pacient_id=pacient_id) >> in Pacient class, but again all objects in Pacient who have an Exit do >> show up in the view. >> Any ideas what I'm doing wrong? > > > That method needs to go in your ModelAdmin class, not your model. > -- > DR. I tried that also, but I noticed I can't write the right part of the expresion, I get global name pacien_id not defined. How do I write that?
-- 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 django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.