Changeset 5059
- Timestamp:
- 04/21/07 23:55:42 (2 years ago)
- Files:
-
- django/branches/unicode/django/contrib/auth/models.py (modified) (5 diffs)
- django/branches/unicode/django/contrib/contenttypes/models.py (modified) (1 diff)
- django/branches/unicode/django/contrib/flatpages/models.py (modified) (1 diff)
- django/branches/unicode/django/contrib/redirects/models.py (modified) (1 diff)
- django/branches/unicode/django/contrib/sites/models.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/branches/unicode/django/contrib/auth/models.py
r5054 r5059 46 46 ordering = ('content_type', 'codename') 47 47 48 def __ str__(self):49 return "%s | %s | %s" % (self.content_type.app_label, self.content_type, self.name)48 def __unicode__(self): 49 return u"%s | %s | %s" % (self.content_type.app_label, self.content_type, self.name) 50 50 51 51 class Group(models.Model): … … 67 67 search_fields = ('name',) 68 68 69 def __ str__(self):69 def __unicode__(self): 70 70 return self.name 71 71 … … 123 123 search_fields = ('username', 'first_name', 'last_name', 'email') 124 124 125 def __ str__(self):125 def __unicode__(self): 126 126 return self.username 127 127 … … 263 263 message = models.TextField(_('message')) 264 264 265 def __ str__(self):265 def __unicode__(self): 266 266 return self.message 267 267 … … 273 273 pass 274 274 275 def __ str__(self):276 return 'AnonymousUser'275 def __unicode__(self): 276 return u'AnonymousUser' 277 277 278 278 def __eq__(self, other): django/branches/unicode/django/contrib/contenttypes/models.py
r4703 r5059 43 43 unique_together = (('app_label', 'model'),) 44 44 45 def __ str__(self):45 def __unicode__(self): 46 46 return self.name 47 47 django/branches/unicode/django/contrib/flatpages/models.py
r4849 r5059 27 27 search_fields = ('url', 'title') 28 28 29 def __ str__(self):30 return "%s -- %s" % (self.url, self.title)29 def __unicode__(self): 30 return u"%s -- %s" % (self.url, self.title) 31 31 32 32 def get_absolute_url(self): django/branches/unicode/django/contrib/redirects/models.py
r4265 r5059 21 21 search_fields = ('old_path', 'new_path') 22 22 23 def __ str__(self):24 return "%s ---> %s" % (self.old_path, self.new_path)23 def __unicode__(self): 24 return u"%s ---> %s" % (self.old_path, self.new_path) django/branches/unicode/django/contrib/sites/models.py
r4265 r5059 20 20 search_fields = ('domain', 'name') 21 21 22 def __ str__(self):22 def __unicode__(self): 23 23 return self.domain
