summaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
authorDusty Phillips <buchuki@gmail.com>2009-02-06 17:11:00 -0500
committerDusty Phillips <buchuki@gmail.com>2009-02-06 17:11:00 -0500
commit8f59fc7c8dd9f8c139c0aed8ba8c7d31d89619b9 (patch)
tree3a2313b4318f5e3e78145028ae607e05f7c23fd3 /main
parent6a3274dea1836009d220665369ea6235d7843813 (diff)
Use __unicode__ over __str__
Diffstat (limited to 'main')
-rw-r--r--main/models.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/main/models.py b/main/models.py
index 7f7f42d3..dcd49cdc 100644
--- a/main/models.py
+++ b/main/models.py
@@ -90,7 +90,7 @@ class Press(models.Model):
id = models.AutoField(primary_key=True)
name = models.CharField(max_length=255)
url = models.CharField(max_length=255)
- def __str__(self):
+ def __unicode__(self):
return self.name
class Meta:
db_table = 'press'
@@ -101,7 +101,7 @@ class AltForum(models.Model):
language = models.CharField(max_length=255)
url = models.CharField(max_length=255)
name = models.CharField(max_length=255)
- def __str__(self):
+ def __unicode__(self):
return self.name
class Meta:
db_table = 'alt_forums'
@@ -110,7 +110,7 @@ class AltForum(models.Model):
class Donor(models.Model):
id = models.AutoField(primary_key=True)
name = models.CharField(max_length=255)
- def __str__(self):
+ def __unicode__(self):
return self.name
class Meta:
db_table = 'donors'
@@ -122,7 +122,7 @@ class News(models.Model):
postdate = models.DateField(auto_now_add=True)
title = models.CharField(max_length=255)
content = models.TextField()
- def __str__(self):
+ def __unicode__(self):
return self.title
class Meta:
db_table = 'news'
@@ -136,7 +136,7 @@ class News(models.Model):
class Arch(models.Model):
id = models.AutoField(primary_key=True)
name = models.CharField(max_length=255,unique=True)
- def __str__(self):
+ def __unicode__(self):
return self.name
class Meta:
db_table = 'arches'
@@ -146,7 +146,7 @@ class Arch(models.Model):
class Repo(models.Model):
id = models.AutoField(primary_key=True)
name = models.CharField(max_length=255,unique=True)
- def __str__(self):
+ def __unicode__(self):
return self.name
class Meta:
db_table = 'repos'
@@ -173,7 +173,7 @@ class Package(models.Model):
#get_latest_by = 'last_update'
#ordering = ('-last_update',)
- def __str__(self):
+ def __unicode__(self):
return self.pkgname
# According to http://code.djangoproject.com/ticket/2583 we have "bad data"
@@ -278,7 +278,7 @@ class Todolist(models.Model):
description = models.TextField()
date_added = models.DateField(auto_now_add=True)
objects = TodolistManager()
- def __str__(self):
+ def __unicode__(self):
return self.name
@property