*Hi,
*
*
*
*This is one of my Model which has an owner, column - user.*
*
*
*
class MiscList(models.Model):
    name = models.CharField(max_length= 30)
    user = models.ForeignKey(User);
    count = models.IntegerField()
    createdate = models.DateTimeField(auto_now_add = True)
**
    def __unicode__(self):
**
        return self.name

*
*
In one of my forms I would like to have this list filtered by the currently
logged in user.
Anyone of you have solved a scenario like this.
Since this is not a view I am not able to pass request.user object to the
form, in any way, what is the
preferred way of doing this ?
*
*
*
-- 
Thanks and Regards,
*Praveen Krishna R*

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to