What is __ Str__ in Django?

The __str__() method is called whenever you call str() on an object . Django uses str(obj) in a number of places. Most notably, to display an object in the Django admin site and as the value inserted into a template when it displays an object.

Sizin İçin Seçtik  How do forms work in Django?

Leave a Reply

Your email address will not be published. Required fields are marked *