Dnia 2011-07-06, śro o godzinie 13:16 -0700, galgal pisze:
> Any idea how to overwrite it dynamically?
> def get_form(self, request, obj=None, **kwargs):
>         self.exclude = ('user_permissions',)
>         return super(UserProfileAdmin, self).get_form(request,
> obj=None, **kwargs)
> Throws:
> TemplateSyntaxError at /admin/auth/user/2/
> Caught KeyError while rendering: "Key 'password' not found in Form"

That exception is irrelevant to the code you provided. Paste full code
and full backtrace.

-- 
Michał (Saviq) Sawicz <mic...@sawicz.net>

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to