jazzband / django-authority

A Django app that provides generic per-object-permissions for Django's auth app and helpers to create custom permission checks.
http://django-authority.readthedocs.org
BSD 3-Clause "New" or "Revised" License
293 stars 58 forks source link

AttributeError 'Options' object has no attribute 'get_ordered_objects' in Django 1.6 #37

Closed ghost closed 4 years ago

ghost commented 10 years ago

Hi, I'm using version 0.8 of django-authority and I'm following the documentation to create a per-object permission in Django 1.6. When in the admin I select an object from my class and try to 'Edit permissions for selected 'MyObject'", I get the following error:

AttributeError at /admin/activity/myobject/

'Options' object has no attribute 'get_ordered_objects'

Request Method: POST Request URL: http://example.com/admin/activity/myobject/ Django Version: 1.6.2 Exception Type: AttributeError Exception Value:

'Options' object has no attribute 'get_ordered_objects'

Exception Location: .virtualenv/lib/python2.7/site-packages/authority/admin.py in edit_permissions, line 84 Python Executable: /usr/bin/python Python Version: 2.7.6

I found a ticket about the removal of 'get_ordered_objects' [1] and I can't find it in the source code for 1.6, but I don't know enough of what this function is used for, to comment it or replace it.

[1] https://code.djangoproject.com/ticket/19469

winhamwr commented 10 years ago

Hello morthylla,

Thanks for the bug report. It looks like this is another example of Django 1.6 incompatibility. Hooray compatibility problems :)

If nobody else is able to get a pull request, I'm upgrading to 1.6 within the next 6 months, so I'll definitely fix it in the near-ish future.

Thanks -Wes

jlward commented 8 years ago

@bocribbz can you take a look at this while we are getting django 1.8 support?