Skip to content

Replace Django 5.0 with 5.1#278

Merged
bennylope merged 3 commits intomasterfrom
django-5.1
Oct 28, 2024
Merged

Replace Django 5.0 with 5.1#278
bennylope merged 3 commits intomasterfrom
django-5.1

Conversation

@bennylope
Copy link
Copy Markdown
Owner

No description provided.

@thrashr888
Copy link
Copy Markdown

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
Copy Markdown
Owner Author

bennylope commented Oct 28, 2024 via email

@bennylope bennylope merged commit 52433ed into master Oct 28, 2024
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