Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Admin interface for VersionCount #31

Merged
merged 1 commit into from

3 participants

@nigelbabu

No description provided.

@tofumatt

Works for me. r+

@davedash davedash merged commit ba0d713 into mozilla:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Oct 24, 2011
  1. @nigelbabu
This page is out of date. Refresh to see the latest.
Showing with 10 additions and 1 deletion.
  1. +10 −1 apps/feedback/admin.py
View
11 apps/feedback/admin.py
@@ -1,6 +1,6 @@
from django.contrib import admin
-from .models import Opinion, Term
+from .models import Opinion, Term, VersionCount
class OpinionAdmin(admin.ModelAdmin):
@@ -40,3 +40,12 @@ class TermAdmin(admin.ModelAdmin):
list_filter = ('hidden',)
search_fields = ['term']
admin.site.register(Term, TermAdmin)
+
+
+class VersionCountAdmin(admin.ModelAdmin):
+ list_display = ('product', 'version', 'num_opinions', 'active')
+ ordering = ('-version', 'product')
+ readonly_fields = ('product', 'version', 'num_opinions', 'version_int')
+ search_fields = ['version']
+
+admin.site.register(VersionCount, VersionCountAdmin)
Something went wrong with that request. Please try again.