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, just for convention). And shouldn't day just be a DateField? Your filter function also gets a notary-dict passed as keyword-args that you haven't provided in your post.
I can also give you some basic rtfm-links if you don't know them already: http://www.djangoproject.com/documentation/model-api/ for the fields http://www.djangoproject.com/documentation/db-api/#related-objects for the fk-relation http://www.djangoproject.com/documentation/db-api/#filter-kwargs for the filter --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---