From 9063b52ba509936c0f047840b54b97b33a168f5d Mon Sep 17 00:00:00 2001 From: eliott Date: Sat, 8 Mar 2008 00:29:24 -0800 Subject: Added alt_forums and press models --- main/models.py | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/main/models.py b/main/models.py index c82eca6a..601e3ae0 100644 --- a/main/models.py +++ b/main/models.py @@ -75,6 +75,35 @@ class Mirror(models.Model): search_fields = ('domain') pass +class Press(models.Model): + id = models.AutoField(primary_key=True) + name = models.CharField(maxlength=255) + url = models.CharField(maxlength=255) + def __str__(self): + return self.name + class Meta: + db_table = 'press' + class Admin: + ordering = ['name'] + search_fields = ('name') + pass + +class AltForums(models.Model): + id = models.AutoField(primary_key=True) + language = models.CharField(maxlength=255) + url = models.CharField(maxlength=255) + name = models.CharField(maxlength=255) + def __str__(self): + return self.name + class Meta: + db_table = 'alt_forums' + class Admin: + list_display = ('language', 'name') + list_filter = ('language',) + ordering = ['name'] + search_fields = ('name') + pass + class Donor(models.Model): id = models.AutoField(primary_key=True) name = models.CharField(maxlength=255) -- cgit v1.2.3-2-g168b