Quantcast
Channel: Planet Python
Viewing all articles
Browse latest Browse all 22915

Abhijeet Pal: Understanding related_name in Django Models

$
0
0

In Django, related_name is an attribute that can be used to specify the name of the reverse relation from the related model back to the model that defines the relation. It is used to specify the name of the attribute that will be used to access the related model from the reverse side of the relation.

This attribute is particularly …


Viewing all articles
Browse latest Browse all 22915

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>