I've extended Django's default user class like this:
class CustomUser(User):
friends = models.ManyToManyField('self', symmetrical=False)
But now I want to use that everywhere instead of the default User
class. In my view methods, I have access to request.user
but that's an instance of the User
class. What's the easiest way to make it return a CustomUser
instead?