Django-jet: Unable to login to admin

Created on 20 Dec 2016  路  5Comments  路  Source: geex-arts/django-jet

TypeError at /admin/
argument of type 'ValuesListQuerySet' is not iterable

Error during template rendering in virtualenv/local/lib/python2.7/site-packages/jet/templates/admin/base.html, error at line 176

image

Most helpful comment

the main problem was that the i forgot to do the migration and was searching in other places because the error message was showing a different direction. so the above mentioned fix is not needed. After i did the migrations for jet, it worked very well !!!

All 5 comments

the fix will be to change this in the jet_tags.py
pinned = list(PinnedApplication.objects.filter(user=context.get('user').pk).values_list('app_label', flat=True))

the main problem was that the i forgot to do the migration and was searching in other places because the error message was showing a different direction. so the above mentioned fix is not needed. After i did the migrations for jet, it worked very well !!!

I just installed django-jet, did the migrations, and this error shows up. -- note, from the pip installed version 1.0.5. I'll try dev to solve it.

pip install from github, migrated both dashboard and jet = working.

I have the same error. Would you please explain, what you did at the line pinned = ....

I solved it:

  1. Delete database
  2. Delete files generated by makemigrations
  3. Re-execute makemigrations and migrate
Was this page helpful?
0 / 5 - 0 ratings

Related issues

kevin-miles picture kevin-miles  路  5Comments

sysint64 picture sysint64  路  3Comments

VincentVW picture VincentVW  路  5Comments

Zundrium picture Zundrium  路  9Comments

mapleflow picture mapleflow  路  8Comments