summaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
authoreliott <eliott@cactuswax.net>2008-03-08 00:29:24 -0800
committereliott <eliott@cactuswax.net>2008-03-08 00:29:24 -0800
commit9063b52ba509936c0f047840b54b97b33a168f5d (patch)
tree377f845a614f8cb9f08acdd84c093440d338dd82 /main
parente07a7675d0fb569530ba222fadfec2eaa084e0c1 (diff)
Added alt_forums and press models
Diffstat (limited to 'main')
-rw-r--r--main/models.py29
1 files changed, 29 insertions, 0 deletions
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)