Hi i need have this in my views! but not working

dicc_one = {'string1': 'fieldsFK__total_one__gt=0',
                   'string2': 'fieldsFK__total_two__gt=0',
                   'string3': 'fieldsFK__total_three__gt=0',
                   'string4': 'fieldsFK__total_four__gt=0',
              }
results = {}

    for k,v in dicc_one.items():
        print v
        results[k] = Model.objects.filter(v).count()  # this fail no
working any idea

this error show me:

too many values to unpack
Cheers

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAM-7rO1ex0mxrtV7_JUiCqZ%2BaOVSh2ebkVqusVjsAVA7GJHr4w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to