fix(api): restful to restx migration issue (#24416)
This commit is contained in:
parent
5ff3947312
commit
f31ddc4b1c
3 changed files with 3 additions and 15 deletions
|
|
@ -57,7 +57,7 @@ def run(script):
|
|||
|
||||
|
||||
class AppIconUrlField(fields.Raw):
|
||||
def output(self, key, obj):
|
||||
def output(self, key, obj, **kwargs):
|
||||
if obj is None:
|
||||
return None
|
||||
|
||||
|
|
@ -72,7 +72,7 @@ class AppIconUrlField(fields.Raw):
|
|||
|
||||
|
||||
class AvatarUrlField(fields.Raw):
|
||||
def output(self, key, obj):
|
||||
def output(self, key, obj, **kwargs):
|
||||
if obj is None:
|
||||
return None
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue