我正在尝试使用ForeignKeys ID在其他表中搜索;得到我正在使用的ID:
[Main (3) [Java Application]
application.Main at localhost:34867
Thread [main] (Suspended (exception NullPointerException))
SystemProperties.setVersions() line: 81
SystemProperties.lambda$static$55() line: 67
1917513796.run() line: not available
AccessController.doPrivileged(PrivilegedAction<T>) line: not available [native method]
SystemProperties.<clinit>() line: 64
LauncherImpl.startToolkit() line: 668
LauncherImpl.launchApplicationWithArgs(String, String, String[]) line: 337
LauncherImpl.launchApplication(String, String, String[]) line: 328
NativeMethodAccessorImpl.invoke0(Method, Object, Object[]) line: not available [native method]
NativeMethodAccessorImpl.invoke(Object, Object[]) line: 62
DelegatingMethodAccessorImpl.invoke(Object, Object[]) line: 43
Method.invoke(Object, Object...) line: 498
LauncherHelper$FXHelper.main(String...) line: 767
/usr/lib/jvm/java-8-openjdk-amd64/bin/java (Mar 24, 2018, 5:19:54 PM)
][2]
[1]: https://i.stack.imgur.com/ThjM6.png
[2]: http://eror.com
返回:
infos = LOGIN.objects.filter(servicesName="example").values('user_id','passwd_id')
所以这是我的问题:我怎样才能获得价值&#39; 3&#39;来自&#39; passwd_id&#39;?或者甚至更好,有更简单的方法吗?