We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
对于文章编辑表单提交后出现 TypeError: init() got multiple values for argument ‘instance' 的解决方法如下:
def __init__(self, *args, **kwargs): initial = kwargs.get('initial') or {} instance = kwargs.get('instance') if instance: if instance.is_md: initial['content_md'] = instance.content else: initial['content_ck'] = instance.content kwargs.update({'initial': initial, 'instance': instance}) super().__init__(*args, **kwargs)
https://stackoverflow.com/questions/55338745/typeerror-init-got-multiple-values-for-argument-instance https://stackoverflow.com/questions/19672035/django-multiple-values-for-keyword-argument-initial
The text was updated successfully, but these errors were encountered:
No branches or pull requests
对于文章编辑表单提交后出现 TypeError: init() got multiple values for argument ‘instance' 的解决方法如下:
StackOverflow 上的相关参考
https://stackoverflow.com/questions/55338745/typeerror-init-got-multiple-values-for-argument-instance
https://stackoverflow.com/questions/19672035/django-multiple-values-for-keyword-argument-initial
The text was updated successfully, but these errors were encountered: