hmarr/mongoengine — pull request #573 by garrypolley (2012-09-27 15:24:56+00:00)
Title: Allow Django  AuthenticatBackends to work with Django user

Updated the mongoengine.django.auth.User so that authentication backends can use permissions.

Currently if you attempt to use an AuthenticationBackend that has a has_perm method, this will error out because the mongoengine User does not have a has_perm or a get_all_permissions method.

The methods I have added are nearly a complete copy paste from the existing Django User. The imported underscore functions spin through the backends and check permissions as the backend is programmed to do.