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

Replace Django 5.0 with 5.1 #278

Merged
merged 3 commits into from
Oct 28, 2024
Merged

Replace Django 5.0 with 5.1 #278

merged 3 commits into from
Oct 28, 2024

Conversation

bennylope
Copy link
Owner

No description provided.

@thrashr888
Copy link

I'm running Django 5.1 and get this error when using the OrganizationUserAddForm form:

  File "/Users/thrashr888/Workspace/samuraidata-io-py/venv/lib/python3.13/site-packages/organizations/backends/defaults.py", line 320, in invite_by_email
    password=self.user_model.objects.make_random_password(),
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'UserManager' object has no attribute 'make_random_password'

BaseUserManager.make_random_password() was deprecated in Django 5.1: https://docs.djangoproject.com/en/dev/internals/deprecation/#deprecation-removed-in-5-1

@bennylope
Copy link
Owner Author

bennylope commented Oct 28, 2024 via email

@bennylope bennylope merged commit 52433ed into master Oct 28, 2024
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants