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 9887,Testclient user have not enough permissions to create another users.,nuald ,nobody,"During Django unit-testing the testclient user is creating another users, and if someone (like we are) added security checks like one below, tests will fail. Sample code: {{{ def check_change_permissions(sender, instance, **kwargs): user = get_current_user() # WARNING! This is used for passing Django unit-testing. if not user: return #WARNING! For successful login. if user.is_anonymous(): return if user.is_superuser: return if user != instance: raise PermissionDenied pre_save.connect(check_change_permissions, sender = User) }}} The fix is trivial - add superuser permissions to the testclient user. Patch is included.",,closed,Testing framework,1.0,,wontfix,,alex.slesarev@…,Unreviewed,1,0,0,0,0,0