django-suit icon indicating copy to clipboard operation
django-suit copied to clipboard

Support for django 2

Open Snakeyyy opened this issue 7 years ago • 9 comments

Could you please provide information what are the plans for supporting django 2.0? Is suit v1 going to support it?

Snakeyyy avatar Dec 27 '17 08:12 Snakeyyy

Locally, I got it to work with 2.0 by just making the following changes:

old: from django.core.urlresolvers import reverse, resolve new: from django.urls import reverse, resolve

old: @register.assignment_tag(takes_context=True) new: @register.simple_tag(takes_context=True)

The only files I had to change were suit_menu.py and suit_tags.py, so hopefully it will be a quick fix.

scott-weaver avatar Jan 02 '18 19:01 scott-weaver

Is there any activity at all from @darklow recently on this project?

gamesbook avatar Jan 03 '18 06:01 gamesbook

I'm currently very busy working on another project. If someone could take a look on existing pull requests on Django 2.0 support and test them and provide feedback I could merge them in.

darklow avatar Jan 03 '18 17:01 darklow

also admin.py in line 94: if isinstance(field.rel, models.ManyToOneRel): should change to if isinstance(field.remote_field, models.ManyToOneRel):

mikewolfli avatar Jan 15 '18 02:01 mikewolfli

py3.6 django 2.0.1 需要调整: site-packages/suit/templatetags/tempsuit_menu.py site-packages/suit/templatetags/suit_tags.py site-packages/suit/templatetags/suit_forms.py

调整内容: 原有: from django.core.urlresolvers import reverse, resolve 新: from django.urls import reverse, resolve 原有: @register.assignment_tag(takes_context=True) 新: @register.simple_tag(takes_context=True)

bigwboy avatar Jan 16 '18 03:01 bigwboy

for python 3.6.3 django 2.0.1 suit 2.0a1

change file: /lib/python3.6/site-packages/suit/admin.py @ line 3: from django.core.urls import reverse_lazy to from django.urls import reverse_lazy

and

change file: /lib/python3.6/site-packages/suit/menu.py @line 223 from django.core.urlresolvers import reverse, NoReverseMatch to from django.urls import reverse, NoReverseMatch

jayWarr avatar Jan 23 '18 11:01 jayWarr

Django 2.0 support for v1 was just added through: https://github.com/darklow/django-suit/pull/663 Available though newest 0.2.26. For v2 and Django 2.0 I need some help testing https://github.com/darklow/django-suit/pull/652#issuecomment-368263416 Thank you.

darklow avatar Feb 24 '18 22:02 darklow

PR with v2 support was merged in: https://github.com/darklow/django-suit/pull/652

darklow avatar Mar 03 '18 18:03 darklow

PR with v2 support was merged in: #652

So this issues can be closed, isn't it?

jedie avatar Aug 23 '19 14:08 jedie