summaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorDusty Phillips <buchuki@gmail.com>2009-08-21 00:17:25 +0200
committerDusty Phillips <buchuki@gmail.com>2009-08-21 00:17:25 +0200
commit499bb4aca784874db84aa8ddc7e21627249cdb26 (patch)
tree55743f1780662ba8ec714a02f9a86a80d0099f37 /main
parenta885c3d9b695a3743cd5c76ddc4708c2987b1020 (diff)
downloadarchweb-499bb4aca784874db84aa8ddc7e21627249cdb26.tar.gz
archweb-499bb4aca784874db84aa8ddc7e21627249cdb26.tar.xz
Add an 'external projects' model and admin for managing the projects page.
Diffstat (limited to 'main')
-rw-r--r--main/admin.py3
-rw-r--r--main/models.py8
2 files changed, 10 insertions, 1 deletions
diff --git a/main/admin.py b/main/admin.py
index b966726..11d95c7 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 archweb_dev.main.models import (AltForum, Arch, Donor,
Mirror, MirrorProtocol, MirrorUrl, MirrorRsync,
- Package, Press, Repo, UserProfile)
+ Package, Press, Repo, UserProfile, ExternalProject)
class AltForumAdmin(admin.ModelAdmin):
list_display = ('language', 'name')
@@ -94,5 +94,6 @@ admin.site.register(Package, PackageAdmin)
admin.site.register(Press, PressAdmin)
admin.site.register(Arch)
admin.site.register(Repo)
+admin.site.register(ExternalProject)
# vim: set ts=4 sw=4 et:
diff --git a/main/models.py b/main/models.py
index 580e1ee..eb16e61 100644
--- a/main/models.py
+++ b/main/models.py
@@ -306,5 +306,13 @@ class TodolistPkg(models.Model):
db_table = 'todolist_pkgs'
unique_together = (('list','pkg'),)
+class ExternalProject(models.Model):
+ url = models.URLField()
+ 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: