def share_user(): user = ShareUser(username='******', ) user.save() # add source factories.SourceFactory(user=user), return user
def source_add_user(): content_type = ContentType.objects.get_for_model(Source) permission = Permission.objects.get(content_type=content_type, codename='add_source') user = ShareUser(username='******', is_trusted=True) user.save() user.user_permissions.add(permission) return user
def share_user(): user = ShareUser( username='******', ) user.save() # add source factories.SourceFactory(user=user), return user
def share_user(): user = ShareUser(username='******') user.save() return user
def trusted_user(): user = ShareUser(username='******', is_trusted=True) user.save() return user
def share_source(): source = ShareUser(username='******') source.save() return source