Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc261875

Browse files
Remove 'next_url' from kwargs before passing it to the cls constructor.
The 'next_url' argument causes problems in the _construct_url method if itdoesn't belong there. E.g. if you list all projects, change an attributeof a project and then try to save it, the _construct_url will use the'next_url' from the list method and the save will fail.
1 parent61bc24f commitc261875

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎gitlab/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ def _raw_list(self, path, cls, **kwargs):
281281
get_all_results=kwargs.get('all',False)
282282

283283
# Remove parameters from kwargs before passing it to constructor
284-
forkeyin ['all','page','per_page','sudo']:
284+
forkeyin ['all','page','per_page','sudo','next_url']:
285285
ifkeyincls_kwargs:
286286
delcls_kwargs[key]
287287

@@ -385,7 +385,7 @@ def list(self, obj_class, **kwargs):
385385
get_all_results=params.get('all',False)
386386

387387
# Remove parameters from kwargs before passing it to constructor
388-
forkeyin ['all','page','per_page','sudo']:
388+
forkeyin ['all','page','per_page','sudo','next_url']:
389389
ifkeyincls_kwargs:
390390
delcls_kwargs[key]
391391

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp