What is _set and where is it documented?

34 views
Skip to first unread message

tromba...@gmail.com

unread,
Jul 13, 2015, 4:28:54 PM7/13/15
to django...@googlegroups.com
I've been working through "Writing Your first Django App, part 1."  It appears that "_set" is auto-generated,
and it works with foreign keys.

If _set is an auto-generated (method? attribute?), then where is the documentation that lists and explains
"_set" and other auto-generated methods and functions?
I've searched the Django General Index, which
includes "_save" and "__str__" but not _set.

Is _set a noun (attribute) or a verb (method)?

Thanks

Andrew Farrell

unread,
Jul 13, 2015, 4:38:53 PM7/13/15
to django...@googlegroups.com
Hello,

One relevant bit of the documentation for what you are asking is following-relationships-backward.

--
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...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/41bd1acb-3699-49ef-92a6-86b7dd1cafc1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages