[damned-lies] Add archived filtering in module admin



commit 3fc5117d865554f71c47634b76d0d9f0d95dd72c
Author: Claude Paroz <claude 2xlibre net>
Date:   Tue Feb 7 19:37:21 2017 +0100

    Add archived filtering in module admin

 stats/admin.py |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/stats/admin.py b/stats/admin.py
index a8aca5b..d90ad1e 100644
--- a/stats/admin.py
+++ b/stats/admin.py
@@ -99,6 +99,7 @@ class ModuleAdmin(admin.ModelAdmin):
     )
     inlines = [ BranchInline, DomainInline ]
     search_fields = ('name', 'homepage', 'comment', 'vcs_web')
+    list_filter = ('archived',)
 
     def formfield_for_dbfield(self, db_field, **kwargs):
         field = super(ModuleAdmin, self).formfield_for_dbfield(db_field, **kwargs)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]