﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
29381	Move some parts of `django.contrib.auth.models` to `django.contrib.auth.base_user` for reusability	Sagar Chalise	nobody	"
----
This is more of an idea than bug but most of the time when need to use authentication without using `contrib.auth` one needs to rewrite some of the parts that can be reused if it were in base_user when the interface is similar to django.contrib.auth.
I am mostly talking about update_last_login function and AnonymousUser when custom user is derived from AbstractBaseUser.

May be create AnonymousBaseUser with parts that are compatible to AbstractBaseUser in `base_user.py` and use that as base class for AnonymousUser. Also, update_last_login function can be moved to `base_user.py` so that it can be reused. "	Uncategorized	closed	Uncategorized	2.0	Normal	needsinfo		Carlton Gibson	Unreviewed	0	0	0	0	0	0
