Customizing an Admin form in Django while also using autodiscover

后端 未结 2 1075

I want to modify a few tiny details of Django\'s built-in django.contrib.auth module. Specifically, I want a different form that makes username an email field

2条回答
  •  清歌不尽
    2020-12-07 18:40

    I think it might be easier to do this with a custom auth backend and thus remove the need for a customized ModelAdmin.

    I did something similar with this snippet: http://www.djangosnippets.org/snippets/74/

提交回复
热议问题