[Fixed]-TypeError: 'str' object is not callable in Django 1.10 Admin change_form.html {{ original|truncatewords:"18" }}

1👍

@property decorator isn’t needed:

class TotalsAndStats(models.Model):

    # ...

    def __str__(self):
        return str(self.athlete.id) + ":" + self.period

Leave a comment