diff options
author | Dan McGee <dan@archlinux.org> | 2010-03-01 18:57:58 -0600 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2010-04-18 22:54:10 -0500 |
commit | 8e6bb3d794cd8c8d684115b325d8c33f530e5ecc (patch) | |
tree | 7216414a4b2980d69cf3a9177a4317274ea2a805 /main | |
parent | d38d1cbd349447d3e8c8f8e1cf65af2fb7bb6815 (diff) |
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 <dan@archlinux.org>
Diffstat (limited to 'main')
-rw-r--r-- | main/admin.py | 8 | ||||
-rw-r--r-- | main/models.py | 10 |
2 files changed, 1 insertions, 17 deletions
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.models import User 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 @@ admin.site.register(Mirror, MirrorAdmin) 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 @@ class MirrorRsync(models.Model): 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) |