Dev Utils
Developer
- class djem.utils.dev.Developer(**user_lookup_kwargs)[source]
Designed for use within the Django shell to aid developers in performing regular operations used for testing and debugging, primarily regarding accessing the developer’s user record and altering aspects of that record
- awesome = {'is_staff': True, 'is_superuser': True}
- boring = {'is_staff': False, 'is_superuser': False}
- user
The developer’s associated user model instance, as given by
django.contrib.auth.get_user_model(), and looked up using the keyword arguments given to the constructor or defined by theDJEM_DEV_USERsetting.
- be_awesome()[source]
Assign
userthe attributes defined inawesome. Designed to allow developers to adopt/restore relevant elevated privileges.