Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update the project for Wagtail 6 (breaking changes) #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ ORDERING_FIELD = 'my_order'
###### In wagtail_hooks.py, add a mixin class to augment the functionality for sorting (be sure to put the mixin class before ModelAdmin):

```python
from wagtail.contrib.modeladmin.options import ModelAdmin
from wagtail_modeladmin.options import ModelAdmin
from wagtail_adminsortable.admin import SortableAdminMixin


Expand Down
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ def read(filename):
'Framework :: Wagtail',
],
install_requires=[
'wagtail>=2.15.0'
"wagtail>=6",
"wagtail-modeladmin",
],
packages=find_packages(exclude=['example', 'docs']),
include_package_data=True,
Expand Down
2 changes: 1 addition & 1 deletion wagtail_adminsortable/templatetags/adminsortable_tags.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from django.forms.utils import flatatt
from django.utils.safestring import mark_safe
from django.contrib.admin.templatetags.admin_list import result_headers
from wagtail.contrib.modeladmin.templatetags.modeladmin_tags import results
from wagtail_modeladmin.templatetags.modeladmin_tags import results

register = Library()

Expand Down
2 changes: 1 addition & 1 deletion wagtail_adminsortable/views.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from django.views.generic import FormView
from wagtail.contrib.modeladmin.views import IndexView
from wagtail_modeladmin.views import IndexView

from .forms import SortableForm
from .mixins import AjaxableResponseMixin
Expand Down