summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2010-03-11 03:50:29 +0100
committerDan McGee <dan@archlinux.org>2010-03-11 03:50:29 +0100
commit21fe1460d4a9d9fca913b3bae50f051a78796ffb (patch)
tree0e053f92d7c3a9c30041673d98148d48caf71287
parent73baf1b967f5d224842b880d33e636114c9995d9 (diff)
downloadarchweb-21fe1460d4a9d9fca913b3bae50f051a78796ffb.tar.gz
archweb-21fe1460d4a9d9fca913b3bae50f051a78796ffb.tar.xz
Make the new 'testing' flag on repo a bit clearer
Since at least two repositories currently fall under this flag, add some help text and visibility to this column. Signed-off-by: Dan McGee <dan@archlinux.org>
-rw-r--r--main/admin.py7
-rw-r--r--main/models.py3
2 files changed, 8 insertions, 2 deletions
diff --git a/main/admin.py b/main/admin.py
index b42c891..3ab6d5d 100644
--- a/main/admin.py
+++ b/main/admin.py
@@ -68,6 +68,11 @@ class MirrorAdmin(admin.ModelAdmin):
MirrorRsyncInlineAdmin,
]
+class RepoAdmin(admin.ModelAdmin):
+ list_display = ('name', 'testing')
+ list_filter = ('testing',)
+ search_fields = ('name',)
+
class PackageAdmin(admin.ModelAdmin):
list_display = ('pkgname', 'repo', 'arch', 'maintainer')
list_filter = ('repo', 'arch', 'maintainer')
@@ -99,7 +104,7 @@ admin.site.register(MirrorProtocol)
admin.site.register(Package, PackageAdmin)
admin.site.register(Press, PressAdmin)
admin.site.register(Arch)
-admin.site.register(Repo)
+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 fabb867..d129f4a 100644
--- a/main/models.py
+++ b/main/models.py
@@ -161,7 +161,8 @@ class Arch(models.Model):
class Repo(models.Model):
id = models.AutoField(primary_key=True)
name = models.CharField(max_length=255,unique=True)
- testing = models.BooleanField(default=False)
+ testing = models.BooleanField(default=False,
+ help_text="Is this repo meant for package testing?")
def __unicode__(self):
return self.name
class Meta: