This breaks the django admin. You need to return a string here. Something like this should work: `str(self.id)`