toastdriven / restless

A lightweight REST miniframework for Python.
http://restless.readthedocs.org/en/latest/
BSD 3-Clause "New" or "Revised" License
832 stars 107 forks source link

Updated dj.py for supporting latest Django #134

Open nhridoy opened 2 years ago

nhridoy commented 2 years ago

Change One: restless/restless/dj.py from django.conf.urls import url ❌ from django.urls import re_path ✔️

url(r'^$', cls.as_list(), name=cls.build_url_name('list', name_prefix)), ❌ re_path (r'^$', cls.as_list(), name=cls.build_url_name('list', name_prefix)), ✔️

url(r'^(?P<pk>[\w-]+)/$', cls.as_detail(), name=cls.build_url_name('detail', name_prefix)), ❌ re_path (r'^(?P<pk>[\w-]+)/$', cls.as_detail(), name=cls.build_url_name('detail', name_prefix)), ✔️

Change Two: Refactor codes

tianfan commented 1 year ago

I am wondering if this pull request done? Can the admin merge the pull request? this is an important change.

jeromelefeuvre commented 8 months ago

More than 1 years and not yet merged! Hey @toastdriven, can you do something or add more collaborators to merge this! Thanks!!