Skip to content

Attribute Error #7

@Andril

Description

@Andril
AttributeError at /admin/adminfiles/fileupload/add/
'QueryDict' object has no attribute 'has_key'

in adminfiles/admin.py in response_add:
34: if request.POST.has_key('_popup'): 

This error appears when trying to add new file (on the form with FilePickerAdmin and on separate adminfiles form).
I use django 1.8 and required packages for adminfiles has been installed.

Also I have problem with migrating with adminfiles in INSTALLED_APPS , error when I run command migrate is:

psycopg2.ProgrammingError: relation django_content_type does not exist 

Using django-adminfiles there is such message, when i run server:

/usr/local/python-3.4.3/lib/python3.4/importlib/_bootstrap.py:321: RemovedInDjango19Warning: django.contrib.contenttypes.generic is deprecated and will be removed in Django 1.9. Its contents have been moved to the fields, forms, and admin submodules of django.contrib.contenttypes.
  return f(*args, **kwds)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions