diff options
author | eliott <eliott@cactuswax.net> | 2008-03-08 13:55:11 -0800 |
---|---|---|
committer | eliott <eliott@cactuswax.net> | 2008-03-08 13:55:11 -0800 |
commit | 5997437edd0eed25fc78e69e1e9e1bf01ff4ec54 (patch) | |
tree | 9dd879e2eb45d83a9b25312919ae22fa2376d028 | |
parent | 71a8272800efb803cd4f691eccc93b715ba81cb1 (diff) |
Renamed more tables for consistency
-rw-r--r-- | main/models.py | 8 |
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 |