Exception Value: need more than 1 value to unpack
See original GitHub issueHello, i have a some stange issue:
Django Version: 1.3 Exception Type: ValueError Exception Value: need more than 1 value to unpack Exception Location: /home/combatcode/www/somehere/smart_selects/db_fields.py in init, line 16 Python Executable: /usr/local/python2.6/bin/python Python Version: 2.6.1
Model:
class Somemodel(models.Model):
kategoriagl = models.ForeignKey('self')
kategorianext = ChainedForeignKey(
'self',
chained_field="kategoriagl",
chained_model_field="kategoriagl",
show_all=False,
auto_choose=True
)
app is installed, and imported to models. Can u tell me what is wrong?
Edit (by blag): Updated to use GFM.
Issue Analytics
- State:
- Created 12 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
Python Error: "ValueError: need more than 1 value to unpack"
youre getting ''ValueError: need more than 1 value to unpack'', because you only gave one value, the script (which is ex14.py in this...
Read more >ValueError: need more than 1 value to unpack? - Blender Artists
During a multiple value assignment, the ValueError: need more than 2 values to unpack occurs when either you have fewer objects to assign...
Read more >need more than 1 value to unpack' in Python - Quora
It is an exception that can be raised by any Python code, which signifies that the code received a value which is unexpected....
Read more >ValueError: need more than 1 value to unpack #703 - GitHub
During a multiple value assignment, the ValueError: need more than 2 values to unpack occurs when either you have fewer objects to assign...
Read more >Python Error: “ValueError: need more than 1 value to unpack”
Reason of getting THIS value error is probably you didn't provide an argument on the command line . In that case, sys.argv only...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I’d rather just fix the issue than update the documentation. I’ll have time to do that later this week.
@SalahAdDin https://pypi.python.org/pypi?:action=display&name=django-smart-selects&version=1.2.6