Ticket #14090: auth.permissions.select_related.content_type.diff
File auth.permissions.select_related.content_type.diff, 620 bytes (added by , 14 years ago) |
---|
-
django/contrib/auth/forms.py
52 52 class Meta: 53 53 model = User 54 54 55 def __init__(self, *args, **kwargs): 56 super(UserChangeForm, self).__init__(*args, **kwargs) 57 self.fields['user_permissions'].queryset = self.fields['user_permissions'].queryset.select_related('content_type') 58 55 59 class AuthenticationForm(forms.Form): 56 60 """ 57 61 Base class for authenticating users. Extend this to get a form that accepts