diff gpp/bio/admin.py @ 138:7ea842744a57

Ticket #15, add a way to report user profiles.
author Brian Neal <bgneal@gmail.com>
date Fri, 27 Nov 2009 21:55:32 +0000
parents dbd703f7d63a
children 152d77265da6
line wrap: on
line diff
--- a/gpp/bio/admin.py	Fri Nov 27 04:11:12 2009 +0000
+++ b/gpp/bio/admin.py	Fri Nov 27 21:55:32 2009 +0000
@@ -4,12 +4,17 @@
 
 from django.contrib import admin
 from bio.models import UserProfile
+from bio.models import UserProfileFlag
 
 class UserProfileAdmin(admin.ModelAdmin):
-    search_fields = ('user__username', 'user__first_name', 'user__last_name', 'user__email')
+    search_fields = ('user__username', 'user__first_name', 'user__last_name',
+            'user__email')
     exclude = ('profile_html', 'signature_html')
 
+
+class UserProfileFlagAdmin(admin.ModelAdmin):
+    list_display = ('__unicode__', 'flag_date', 'get_profile_url')
+
+
 admin.site.register(UserProfile, UserProfileAdmin)
-
-
-# vim: ts=4 sw=4
+admin.site.register(UserProfileFlag, UserProfileFlagAdmin)