summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main/admin.py8
-rw-r--r--main/models.py10
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)