agateblue / django-dynamic-preferences

Dynamic global and instance settings for your django project
https://django-dynamic-preferences.readthedocs.org/
BSD 3-Clause "New" or "Revised" License
346 stars 86 forks source link

Remove warning in django 4.1 and add support for python 3.11 (#1) #287

Closed jose-reveni closed 1 year ago

jose-reveni commented 1 year ago

SInce updating to django 4.1, I've starting getting the following warning, which this PR fixes:

../usr/local/lib/python3.10/site-packages/dynamic_preferences/serializers.py:17
  /usr/local/lib/python3.10/site-packages/dynamic_preferences/serializers.py:17: RemovedInDjango50Warning: The django.utils.timezone.utc alias is deprecated. Please update your code to use datetime.timezone.utc instead.
    from django.utils.timezone import (

Also I've gone ahead and added python 3.11 to the version list :)