Hey Sarfraz,
You can use any of following methods:
User._meta.get_all_related_m2m_objects_with_model()
User._meta.get_all_related_objects()
User._meta.get_all_related_many_to_many_objects()
User._meta.get_all_related_objects_with_model()
get_all_related_objects() is the one I guess you may want to use in your case.
Pankaj Singh
http://about.me/psjinx
On Wed, Jan 23, 2013 at 2:30 PM, Sarfraz ahmad <sarfrazdjango@gmail.com> wrote:
> hello friends
> i have a project with 7 applications installed in it and i
> want to get all the objects related to a particular user from all the
> applications of ma project......... please tell me how can i get all these
> objects using ContentType framework
>
>
> thank you all
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/django-users/-/tKRQQKC06BsJ.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscribe@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment