-
Notifications
You must be signed in to change notification settings - Fork 65
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
Make compatible with Django 4.0 #158
Comments
I thought there was a Django 4.0 issue already, so thanks for opening. More than happy to take a look at a PR, otherwise, I'll add it and get a release out, which is way overdue. |
Thanks so much @Dresdn! When are you planning to create a new release and push that to PyPi? |
Hi @roordaj - I'll get something out this week! I've been dragging my feet a bit on it. |
Looking forward to it too! If anyone reaches that issue as I did and if the release is not out yet, here's a quick and dirty solution to make your project work while awaiting official solution: # in settings.py
from django.utils.translation import gettext_lazy
from django.dispatch import Signal
django.utils.translation.ugettext_lazy = gettext_lazy
django.utils.encoding.force_text = force_str
class CustomSignal(Signal):
def __init__(self, providing_args=[], use_caching=False):
super().__init__(use_caching)
django.dispatch.Signal = CustomSignal This will prevent crashes due to the use of removed methods in django 4. |
Hi,
I just started using DTU in a Django 4.0 project. I noticed that the following changes had to be made to be compatible. I made the changes in my virtualenv and it's working now, but it would be great if it is changed in the source code so that i dont have to ship my own copy of DTU with the source code. I'm relatively new to Django so please advice if there is a better way to solve these issues.
Following changes have to be made:
tenants > models.py
permissions > models.py
The text was updated successfully, but these errors were encountered: