From 1709def7f196e863de990ce3d55de63f7a349268 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Mon, 1 Mar 2010 18:55:09 -0600 Subject: Remove International Communities Add link to wiki instead. Also remove AltForum model and associated dealings. Signed-off-by: Dan McGee --- main/admin.py | 9 +-------- main/models.py | 11 ----------- 2 files changed, 1 insertion(+), 19 deletions(-) (limited to 'main') diff --git a/main/admin.py b/main/admin.py index 4e71c4e..64f2820 100644 --- a/main/admin.py +++ b/main/admin.py @@ -3,16 +3,10 @@ from django import forms from django.contrib import admin from django.contrib.auth.models import User from django.contrib.auth.admin import UserAdmin -from main.models import (AltForum, Arch, Donor, +from main.models import (Arch, Donor, Mirror, MirrorProtocol, MirrorUrl, MirrorRsync, Package, Repo, UserProfile, ExternalProject) -class AltForumAdmin(admin.ModelAdmin): - list_display = ('language', 'name') - list_filter = ('language',) - ordering = ['name'] - search_fields = ('name',) - class DonorAdmin(admin.ModelAdmin): ordering = ['name'] search_fields = ('name',) @@ -90,7 +84,6 @@ class UserProfileAdmin(UserAdmin): admin.site.register(User, UserProfileAdmin) -admin.site.register(AltForum, AltForumAdmin) admin.site.register(Donor, DonorAdmin) admin.site.register(Mirror, MirrorAdmin) diff --git a/main/models.py b/main/models.py index 45c6540..c527964 100644 --- a/main/models.py +++ b/main/models.py @@ -103,17 +103,6 @@ class MirrorRsync(models.Model): class Meta: verbose_name = 'Mirror Rsync IP' -class AltForum(models.Model): - id = models.AutoField(primary_key=True) - language = models.CharField(max_length=255) - url = models.CharField(max_length=255) - name = models.CharField(max_length=255) - def __unicode__(self): - return self.name - class Meta: - db_table = 'alt_forums' - verbose_name = 'AltForum' - class Donor(models.Model): id = models.AutoField(primary_key=True) name = models.CharField(max_length=255, unique=True) -- cgit v1.2.3-24-g4f1b