From ec59440262596a03e2b374f96d24e295df56c9b8 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Mon, 1 Mar 2010 19:04:41 -0600 Subject: Remove Arch-Based Projects Add a link to the wiki instead. Also remove ExternalProject model and associated dealings. Signed-off-by: Dan McGee --- main/admin.py | 3 +-- main/models.py | 8 -------- public/tests.py | 3 --- public/views.py | 8 +------- templates/public/index.html | 2 +- templates/public/projects.html | 28 ---------------------------- urls.py | 1 - 7 files changed, 3 insertions(+), 50 deletions(-) delete mode 100644 templates/public/projects.html diff --git a/main/admin.py b/main/admin.py index 64f28207..0585e5c3 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 (Arch, Donor, Mirror, MirrorProtocol, MirrorUrl, MirrorRsync, - Package, Repo, UserProfile, ExternalProject) + Package, Repo, UserProfile) class DonorAdmin(admin.ModelAdmin): ordering = ['name'] @@ -92,6 +92,5 @@ admin.site.register(MirrorProtocol) admin.site.register(Package, PackageAdmin) admin.site.register(Arch) admin.site.register(Repo, RepoAdmin) -admin.site.register(ExternalProject) # vim: set ts=4 sw=4 et: diff --git a/main/models.py b/main/models.py index c5279640..5e376ec9 100644 --- a/main/models.py +++ b/main/models.py @@ -335,12 +335,4 @@ class TodolistPkg(models.Model): db_table = 'todolist_pkgs' unique_together = (('list','pkg'),) -class ExternalProject(models.Model): - url = models.URLField(verify_exists=False) - name = models.CharField(max_length=64) - description = models.CharField(max_length=128) - - def __unicode__(self): - return self.name - # vim: set ts=4 sw=4 et: diff --git a/public/tests.py b/public/tests.py index 022560b2..565d57ec 100644 --- a/public/tests.py +++ b/public/tests.py @@ -35,6 +35,3 @@ class PublicTest(TestCase): response = self.client.get('/download/') self.assertEqual(response.status_code, 200) - def test_projects(self): - response = self.client.get('/projects/') - self.assertEqual(response.status_code, 200) diff --git a/public/views.py b/public/views.py index 77fb6405..51e55d12 100644 --- a/public/views.py +++ b/public/views.py @@ -1,5 +1,5 @@ from main.models import Arch, Donor, MirrorUrl, News -from main.models import Package, Repo, ExternalProject +from main.models import Package, Repo from . import utils from django.contrib.auth.models import User @@ -18,12 +18,6 @@ def index(request): return render_to_response('public/index.html', context, context_instance=RequestContext(request)) -def projects(request): - return list_detail.object_list(request, - ExternalProject.objects.all(), - template_name="public/projects.html", - template_object_name="project") - def userlist(request, type='Developers'): users = User.objects.order_by('username') if type == 'Developers': diff --git a/templates/public/index.html b/templates/public/index.html index 3310cae4..27d74828 100644 --- a/templates/public/index.html +++ b/templates/public/index.html @@ -113,7 +113,7 @@
  • IRC Channels
  • Planet Arch
  • Magazines
  • -
  • Arch-Based Projects
  • +
  • Arch-Based Projects
  • International Communities
  • Press
  • diff --git a/templates/public/projects.html b/templates/public/projects.html deleted file mode 100644 index 5fd1fa24..00000000 --- a/templates/public/projects.html +++ /dev/null @@ -1,28 +0,0 @@ -{% extends "base.html" %} -{% block title %}Arch Linux - Projects{% endblock %} -{% block content %} -
    -

    Arch Related Projects

    -

    -

    There are a few Arch-based projects or communities that have sprung up - over the years. Here's a list of the ones we know about.

    - - {% for project in project_list %} - - - - - {% endfor %} -
    {{project.name}}{{project.description}}
    -
    -
    - If you have an Arch related project you would like linked, please open - a Bug Ticket with the category - "web site", and a relevant description.
    Also please let us know if you - think any of the projects above is defunct so we can keep it new and - exciting. -
    -
    -

    -{% endblock %} - diff --git a/urls.py b/urls.py index f9559d3f..ecdc31e9 100644 --- a/urls.py +++ b/urls.py @@ -109,7 +109,6 @@ urlpatterns = patterns('', (r'^fellows/$', 'public.views.userlist', { 'type':'Fellows' }, 'page-fellows'), (r'^donate/$', 'public.views.donate', {}, 'page-donate'), (r'^download/$', 'public.views.download', {}, 'page-download'), - (r'^projects/$', 'public.views.projects', {}, 'page-projects'), (r'^opensearch/packages/$', 'packages.views.opensearch', {}, 'opensearch-packages'), # Some django internals we use -- cgit v1.2.3-55-g3dc8