Created
November 24, 2010 14:33
-
-
Save domenicomonaco/713736 to your computer and use it in GitHub Desktop.
def __unTypeError: coercing to Unicode: need string or buffer, long foundicode__(self):
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Errore: | |
| in Admin o any other query to models | |
| TypeError: coercing to Unicode: need string or buffer, long found | |
| solution: | |
| da | |
| def __unicode__(self): | |
| return self.id | |
| a | |
| def __unicode__(self): | |
| return unicode(self.id) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
what is the different between da and a (line8 and line 12)?
I found
return unicode(self.id)can resolve this problem.