diff options
author | eliott <eliott@cactuswax.net> | 2008-03-08 13:11:39 -0800 |
---|---|---|
committer | eliott <eliott@cactuswax.net> | 2008-03-08 13:11:39 -0800 |
commit | 71a8272800efb803cd4f691eccc93b715ba81cb1 (patch) | |
tree | 3a60b32797a563e7fdb25998b1f39596413e43d3 | |
parent | 3e31808521e990b3b86d25de7d49cdd90a2de29f (diff) |
renamed some tables
-rw-r--r-- | main/models.py | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/main/models.py b/main/models.py index 7b31f07b..f95d2bec 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 = 'common_mirror' + db_table = 'mirror' class Admin: list_display = ('domain', 'country') list_filter = ('country',) @@ -83,12 +83,13 @@ class Press(models.Model): return self.name class Meta: db_table = 'press' + verbose_name_plural = 'press' class Admin: ordering = ['name'] search_fields = ('name') pass -class AltForums(models.Model): +class AltForum(models.Model): id = models.AutoField(primary_key=True) language = models.CharField(maxlength=255) url = models.CharField(maxlength=255) @@ -96,7 +97,8 @@ class AltForums(models.Model): def __str__(self): return self.name class Meta: - db_table = 'alt_forums' + db_table = 'alt_forum' + verbose_name = 'AltForum' class Admin: list_display = ('language', 'name') list_filter = ('language',) @@ -110,7 +112,7 @@ class Donor(models.Model): def __str__(self): return self.name class Meta: - db_table = 'common_donator' + db_table = 'donor' class Admin: ordering = ['name'] search_fields = ('name') @@ -165,7 +167,6 @@ class Package(models.Model): pkgrel = models.CharField(maxlength=255) pkgdesc = models.CharField(maxlength=255) url = models.URLField() - depends = models.ForeignKey('PackageDepends') last_update = models.DateTimeField(null=True, blank=True) objects = PackageManager() class Meta: |