Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#1386] Allow to define auth user when using factories
When creating an instance of the factory, users can provide an 'auth_user' keyword argument with the name of the user that should perform the action. If they don't provide the 'auth_user' argument the site user will be used (this user is a sysadmin). If the action should be performed anonymously (ie no logged in user), auth_user=None should be provided. Note that the keyword argument could not be named 'user', as some action functions use this same parameter.
- Loading branch information
Showing
1 changed file
with
43 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters