[Answer]-File upload in admin cause 400 Error

1👍

Mabye the failing images have filenames that contain non-ascii characters?

Change __str__ to __unicode__ (edited for markdown)

👤pterk

0👍

Change

def __str__(self):
        return self.title

to

def __unicode__(self):
        return self.title

Leave a comment