Write custom on delete Cascade

58 views
Skip to first unread message

mohitdu...@gmail.com

unread,
Jan 3, 2018, 7:03:36 AM1/3/18
to Django users
Hi,
 How to get all the objects referring to the given object in Django?
 

Jani Tiainen

unread,
Jan 3, 2018, 7:19:13 AM1/3/18
to django...@googlegroups.com
Hi

You need to get all reverse related fields using model meta API. 


3.1.2018 14.03 <mohitdu...@gmail.com> kirjoitti:
Hi,
 How to get all the objects referring to the given object in Django?
 

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/13ab0fab-c9f7-449a-a68c-0c5770b6598b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages