Search code examples
djangodjango-cmsdjango-filer

'Folder' object has no attribute 'get_deferred_fields' when trying to create folder in django-cms filer


I created a plugin with a field in models:

picture = FilerImageField(related_name="gallery_image")

Now, when I try to add the plugin to a placeholder, window opens when I can add a picture. So I click "Add file" and new page opens with a list of uploaded files (empty right now). On that page I click create catalogue, enter it's name and when I click save the error shows up:

AttributeError at /pl/admin/filer/folder/make_folder/
'Folder' object has no attribute 'get_deferred_fields'

Django 1.7.9 Thank you for any help


Solution

  • I had this issue, where it was not working on my test environment and it worked correctly on my local environment.

    A few things that were not in sync. One of them was the django-mptt. In my test it was 0.8.7 and in my local I had it as 0.6.1. To test it out I updated my local, which upgrade my django to 1.9, which broke everything. So I reverted Django to 1.7.9 and mptt to 0.6.1. Also I updated my Pillow to 3.1.1.

    So basically it is a combination if installing the plug in and making sure your requirements file has the right versions.