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

Add Django 5.0 compatibility. #286

Closed
fabiocaccamo opened this issue Feb 1, 2024 · 2 comments
Closed

Add Django 5.0 compatibility. #286

fabiocaccamo opened this issue Feb 1, 2024 · 2 comments

Comments

@fabiocaccamo
Copy link
Contributor

Hi @spookylukey,
I have not debugged any aspect of the package, but this error is certain:

  File ".../site-packages/django/forms/forms.py", line 339, in _clean_fields
    value = field.clean(value)
            ^^^^^^^^^^^^^^^^^^
  File ".../site-packages/django/forms/fields.py", line 204, in clean
    value = self.to_python(value)
            ^^^^^^^^^^^^^^^^^^^^^
  File ".../site-packages/paypal/standard/forms.py", line 91, in to_python
    dt = timezone.make_naive(dt, timezone=timezone.utc)
                                          ^^^^^^^^^^^^
AttributeError: module 'django.utils.timezone' has no attribute 'utc'
@fabiocaccamo fabiocaccamo changed the title Add Django 5.0 compatibility. Add Django 5.0 compatibility. Feb 1, 2024
DrMeers added a commit to DrMeers/django-paypal that referenced this issue Mar 27, 2024
@spookylukey
Copy link
Owner

This was fixed in version 2.1

@fabiocaccamo
Copy link
Contributor Author

@spookylukey I just updated the library, thank you very much!

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

No branches or pull requests

2 participants