Skip to content
Browse files

Invitation and Group admin makes better use of raw_id_admin

  • Loading branch information...
1 parent 2c1be97 commit 43508fd59db4f5250365c7c7e570d59c29ea17f2 @nathanborror nathanborror committed Nov 7, 2010
Showing with 3 additions and 0 deletions.
  1. +1 −0 basic/groups/admin.py
  2. +2 −0 basic/invitations/admin.py
View
1 basic/groups/admin.py
@@ -19,6 +19,7 @@ class GroupPageInline(admin.TabularInline):
class GroupAdmin(admin.ModelAdmin):
prepopulated_fields = {'slug': ('title',)}
+ raw_id_fields = ('creator',)
inlines = (
GroupPageInline,
GroupMemberInline
View
2 basic/invitations/admin.py
@@ -6,9 +6,11 @@
class InvitationAdmin(admin.ModelAdmin):
list_display = ('from_user', 'email', 'name', 'status', 'created')
list_filter = ('status',)
+ raw_id_fields = ('from_user',)
admin.site.register(Invitation, InvitationAdmin)
class InvitationAllotmentAdmin(admin.ModelAdmin):
list_display = ('user', 'amount')
+ raw_id_fields = ('user',)
admin.site.register(InvitationAllotment, InvitationAllotmentAdmin)

0 comments on commit 43508fd

Please sign in to comment.
Something went wrong with that request. Please try again.