Created
November 23, 2010 23:32
-
-
Save franckbret/712775 to your computer and use it in GitHub Desktop.
django microformats unicode-coercition-error-on-filefield.patch
This file contains 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
This file contains 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
diff --git a/microformats/models.py b/microformats/models.py | |
index a6a74a6..772fd32 100644 | |
--- a/microformats/models.py | |
+++ b/microformats/models.py | |
@@ -1851,7 +1851,7 @@ class photo(models.Model): | |
verbose_name_plural = _('Photos') | |
def __unicode__(self): | |
- return _('Photo for hCard') | |
+ return u"%s : %s" % (_('Photo for hCard'), self.hcard.fn()) | |
class logo(models.Model): | |
""" | |
@@ -1870,7 +1870,7 @@ class logo(models.Model): | |
verbose_name_plural = _('Logos') | |
def __unicode__(self): | |
- return _('Logo for hCard') | |
+ return u"%s : %s" % (_('Logo for hCard'), self.hcard.fn()) | |
class sound(models.Model): | |
""" | |
@@ -1889,7 +1889,7 @@ class sound(models.Model): | |
verbose_name_plural = _('Sounds') | |
def __unicode__(self): | |
- return _('Sound for hCard') | |
+ return u"%s : %s" % (_('Sound for hCard'), self.hcard.fn()) | |
class title(models.Model): | |
""" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment