Merge lp:~lukasz-czyzykowski/django-openid-auth/switch-useropenid-user-to-raw-id into lp:~django-openid-auth/django-openid-auth/trunk

Proposed by Łukasz Czyżykowski
Status: Merged
Merged at revision: 91
Proposed branch: lp:~lukasz-czyzykowski/django-openid-auth/switch-useropenid-user-to-raw-id
Merge into: lp:~django-openid-auth/django-openid-auth/trunk
Diff against target: 10 lines (+1/-0)
1 file modified
django_openid_auth/admin.py (+1/-0)
To merge this branch: bzr merge lp:~lukasz-czyzykowski/django-openid-auth/switch-useropenid-user-to-raw-id
Reviewer Review Type Date Requested Status
Michael Nelson (community) Approve
django-openid-auth developers Pending
Review via email: mp+79929@code.launchpad.net

Commit message

Changed UserOpenID.user admin widget to raw_id

Description of the change

Overview
========
This branch changes the admin widget used for user field for UserOpenID model to raw_id. The default select will only work up to certain number of users. When this number is too high generated html will cause either web server to time out or web browser run out of memory.

To post a comment you must log in.
Revision history for this message
Michael Nelson (michael.nelson) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'django_openid_auth/admin.py'
2--- django_openid_auth/admin.py 2010-08-10 08:58:07 +0000
3+++ django_openid_auth/admin.py 2011-10-20 09:07:14 +0000
4@@ -62,6 +62,7 @@
5
6
7 class UserOpenIDAdmin(admin.ModelAdmin):
8+ raw_id_fields = ('user',)
9 list_display = ('user', 'claimed_id')
10 search_fields = ('claimed_id',)
11

Subscribers

People subscribed via source and target branches