spookylukey / django-paypal

A pluggable Django application for integrating PayPal Payments Standard or Payments Pro
MIT License
729 stars 208 forks source link

Add `Django 5.0` compatibility. #286

Closed fabiocaccamo closed 6 months ago

fabiocaccamo commented 9 months ago

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'
spookylukey commented 6 months ago

This was fixed in version 2.1

fabiocaccamo commented 6 months ago

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