Skip to content

Glossary: Django Basics

__str__

Also written: str method

A method that says what an object looks like as text. Kettle & Crane's `Product` returns its name, so the shell and admin show `House Espresso` instead of a vague object label.

Where the book teaches it

Related terms

classmethodmodel