[Fixed]-Why use __unicode__(self) method for django 1.7+?

9👍

The idea is when you print {{Project}} you get essentially just get a bunch of garbage that isn’t really informative.

def __Unicode__(self):

This defines what you print so {{Project}} would display the description of the object. Which is much more useful, TO YOU.

Leave a comment