From 8e6bb3d794cd8c8d684115b325d8c33f530e5ecc Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Mon, 1 Mar 2010 18:57:58 -0600 Subject: Remove Press model and admin A link to the wiki was already present, but the model and admin had not been removed. Signed-off-by: Dan McGee --- main/admin.py | 8 +------- main/models.py | 10 ---------- 2 files changed, 1 insertion(+), 17 deletions(-) (limited to 'main') diff --git a/main/admin.py b/main/admin.py index d4a78068..4e71c4e0 100644 --- a/main/admin.py +++ b/main/admin.py @@ -5,7 +5,7 @@ from django.contrib.auth.admin import UserAdmin from main.models import (AltForum, Arch, Donor, Mirror, MirrorProtocol, MirrorUrl, MirrorRsync, - Package, Press, Repo, UserProfile, ExternalProject) + Package, Repo, UserProfile, ExternalProject) class AltForumAdmin(admin.ModelAdmin): list_display = ('language', 'name') @@ -79,11 +79,6 @@ class PackageAdmin(admin.ModelAdmin): ordering = ['pkgname'] search_fields = ('pkgname',) -class PressAdmin(admin.ModelAdmin): - list_display = ('name', 'url') - ordering = ['name'] - search_fields = ('name',) - admin.site.unregister(User) class UserProfileInline(admin.StackedInline): model = UserProfile @@ -102,7 +97,6 @@ class UserProfileAdmin(UserAdmin): admin.site.register(MirrorProtocol) admin.site.register(Package, PackageAdmin) -admin.site.register(Press, PressAdmin) admin.site.register(Arch) admin.site.register(Repo, RepoAdmin) admin.site.register(ExternalProject) diff --git a/main/models.py b/main/models.py index a7a750ac..45c65406 100644 --- a/main/models.py +++ b/main/models.py @@ -103,16 +103,6 @@ def __unicode__(self): class Meta: verbose_name = 'Mirror Rsync IP' -class Press(models.Model): - id = models.AutoField(primary_key=True) - name = models.CharField(max_length=255) - url = models.CharField(max_length=255) - def __unicode__(self): - return self.name - class Meta: - db_table = 'press' - verbose_name_plural = 'press' - class AltForum(models.Model): id = models.AutoField(primary_key=True) language = models.CharField(max_length=255) -- cgit v1.2.3-54-g00ecf