summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2010-03-10 20:50:29 -0600
committerDan McGee <dan@archlinux.org>2010-03-10 20:50:29 -0600
commit21fe1460d4a9d9fca913b3bae50f051a78796ffb (patch)
tree0e053f92d7c3a9c30041673d98148d48caf71287
parent73baf1b967f5d224842b880d33e636114c9995d9 (diff)
Make the new 'testing' flag on repo a bit clearerrelease_2010-03-10
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 b42c891f..3ab6d5d4 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 fabb8673..d129f4a7 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: