On Tue, Aug 11, 2009 at 11:57 PM, Russell Keith-Magee < freakboy3...@gmail.com> wrote:
> > On Wed, Aug 12, 2009 at 10:24 AM, Karen Tracey<kmtra...@gmail.com> wrote: > > On Tue, Aug 11, 2009 at 4:14 PM, bfrederi <brfrederi...@gmail.com> > wrote: > >> > >> I was browsing contrib/admin templates for the "Change User" template > >> that allows you to change the user's permissions and such. I can't > >> seem to find it though. Can anyone point me in the right direction? > > > > Admin doesn't have special templates for certain models, so far as I > know. > > Incorrect. See contrib/admin/templates/admin/auth/user. The general > capability to override templates on a per-model basis is generic. User > is the only model that exploits this capability by default. > Yeah, I did find those and then failed to revise the sentence. I don't see a template there for editing a user, though, just adding, changing password, and confirming delete. So I think the template for "Change User" is not customized in any special way for User, it's the standard admin change template. So how to get a similar effect (which is what I was guessing the real underlying question was) for a different model would be found by looking at the UserAdmin ModelAdmin definitions. Karen --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---