diff options
author | Mike Crute <mcrute@gmail.com> | 2010-05-27 01:14:08 -0400 |
---|---|---|
committer | Mike Crute <mcrute@gmail.com> | 2010-05-27 01:14:08 -0400 |
commit | 5a68ee32fe6ec7a381a16245f85fde210500dfd7 (patch) | |
tree | 8bdac814a7ff66f0c3aa297a6d3c1f3df191d4db /djangopypi/admin.py | |
parent | 93481083e6fa15490584e61a3f6a5638024f9b31 (diff) | |
download | chishop-5a68ee32fe6ec7a381a16245f85fde210500dfd7.tar.bz2 chishop-5a68ee32fe6ec7a381a16245f85fde210500dfd7.tar.xz chishop-5a68ee32fe6ec7a381a16245f85fde210500dfd7.zip |
Adding channel support
Diffstat (limited to 'djangopypi/admin.py')
-rw-r--r-- | djangopypi/admin.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/djangopypi/admin.py b/djangopypi/admin.py index 6f994e8..663cc8e 100644 --- a/djangopypi/admin.py +++ b/djangopypi/admin.py | |||
@@ -1,6 +1,12 @@ | |||
1 | from django.contrib import admin | 1 | from django.contrib import admin |
2 | from djangopypi.models import Project, Release, Classifier | 2 | from djangopypi.models import Project, Release, Classifier, Channel |
3 | |||
4 | |||
5 | class ReleaseAdmin(admin.ModelAdmin): | ||
6 | list_display = ['release_name', 'channel'] | ||
7 | |||
3 | 8 | ||
4 | admin.site.register(Project) | 9 | admin.site.register(Project) |
5 | admin.site.register(Release) | 10 | admin.site.register(Channel) |
6 | admin.site.register(Classifier) | 11 | admin.site.register(Classifier) |
12 | admin.site.register(Release, ReleaseAdmin) | ||