summaryrefslogtreecommitdiff
path: root/main/models.py
diff options
context:
space:
mode:
authoreliott <eliott@cactuswax.net>2008-03-08 13:55:11 -0800
committereliott <eliott@cactuswax.net>2008-03-08 13:55:11 -0800
commit5997437edd0eed25fc78e69e1e9e1bf01ff4ec54 (patch)
tree9dd879e2eb45d83a9b25312919ae22fa2376d028 /main/models.py
parent71a8272800efb803cd4f691eccc93b715ba81cb1 (diff)
Renamed more tables for consistency
Diffstat (limited to 'main/models.py')
-rw-r--r--main/models.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/main/models.py b/main/models.py
index f95d2bec..50bb4230 100644
--- a/main/models.py
+++ b/main/models.py
@@ -67,7 +67,7 @@ class Mirror(models.Model):
def __str__(self):
return self.domain
class Meta:
- db_table = 'mirror'
+ db_table = 'mirrors'
class Admin:
list_display = ('domain', 'country')
list_filter = ('country',)
@@ -97,7 +97,7 @@ class AltForum(models.Model):
def __str__(self):
return self.name
class Meta:
- db_table = 'alt_forum'
+ db_table = 'alt_forums'
verbose_name = 'AltForum'
class Admin:
list_display = ('language', 'name')
@@ -112,7 +112,7 @@ class Donor(models.Model):
def __str__(self):
return self.name
class Meta:
- db_table = 'donor'
+ db_table = 'donors'
class Admin:
ordering = ['name']
search_fields = ('name')
@@ -137,7 +137,7 @@ class Arch(models.Model):
id = models.AutoField(primary_key=True)
name = models.CharField(maxlength=255)
class Meta:
- db_table = 'arch'
+ db_table = 'archs'
ordering = ['name']
def __str__(self):
return self.name