,如果获取不到会报错,所以这里使用filter
获取失败返回空对象列表
在UserProfile中筛选符合条件的用户,返回用户名
"""...def save(self, request, **kwargs):
return self.cleaned_data['tel']
三、重写view视图函数类
allauth中的重置密码的类视图位于...tel = reset_password_form.clean_identity_tel()
# UseProfile 中由于user相同属性的 username...urlpatterns = [
path('admin/', admin.site.urls),
path('', userprofile.views.profile), # 首页..., name='account_reset_password'),
path('accounts/', include('allauth.urls')),
path('accounts/