summaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
Diffstat (limited to 'main')
-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: