*You can add a Foreign Key in the model to django.contrib.auth.models.User, and then in the views or wherever you can filter based on the request.user object.* *something like -> SampleModel.objects.filter(user = request.user) * On Sat, Jan 7, 2012 at 9:46 PM, mirco fini <mirco.f...@gmail.com> wrote:
> hi! > > I would like to create a site where the user can read just database > records written by him or by his group. > Anybody knows how can I obtain that? > > thanks a lot > > Mirco > > -- > 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. > > -- 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.